Script user login
Posted: Wed Mar 27, 2019 3:26 am
Having a problem I'm finding really hard to debug.
In a script module, I'm using Globals.Security.Login() to switch between users and switch to the application default window on successfull login. Sometimes though, I'm getting this exception "The calling thread cannot access this object because a different thread owns it". In Visual Studio it's confirmed that it is that exact line failing.
I do not have any multi threading going on.
Any help would be appreciated. Using iX Developer 2.4 sp1 targeting a PC runtime. Tried multiple machines and they all throw the exception.
In a script module, I'm using Globals.Security.Login() to switch between users and switch to the application default window on successfull login. Sometimes though, I'm getting this exception "The calling thread cannot access this object because a different thread owns it". In Visual Studio it's confirmed that it is that exact line failing.
I do not have any multi threading going on.
Any help would be appreciated. Using iX Developer 2.4 sp1 targeting a PC runtime. Tried multiple machines and they all throw the exception.