SDK Crash in Service
Quote from G4ELI on 05/01/2024, 14:52Hi,
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?
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?
Quote from mm_dev on 08/01/2024, 09:55The 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.
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 G4ELI on 08/01/2024, 17:41Quote from mm_dev on 08/01/2024, 09:55The 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.
Quote from mm_dev on 08/01/2024, 09:55The 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.