Forum
Please or Register to create posts and topics.

SDK Crash in Service

Hi,

When using the SDK in a Windows service, the call to AARTSAAPI_Init() crashes. The service account is NT AUTHORITY\\LocalService. Should the SDK work in a service?

The SDK hasn't been tested in a windows service context. For various reasons it assumes that it is running under a regular user account and access filesystem locations of that user account. I assume the crash is then caused due to those locations not existing for the service account.

So first option would be to test your service with a regular user account (that has already used the RTSA). Alternatively if you could provide us with a sample project that triggers the problem we could check where exactly the issue occurs and maybe fix the crash.

Quote from mm_dev on 08/01/2024, 09:55

The SDK hasn't been tested in a windows service context. For various reasons it assumes that it is running under a regular user account and access filesystem locations of that user account. I assume the crash is then caused due to those locations not existing for the service account.

So first option would be to test your service with a regular user account (that has already used the RTSA). Alternatively if you could provide us with a sample project that triggers the problem we could check where exactly the issue occurs and maybe fix the crash.

Hi,

Thanks for the response - I'll now wait until there's a demand to use the SPECTRAN via the SDR Console's server, then get back to you.