Open calvindevries opened 12 years ago
Hmm, Context.Create
is pretty simple. All it does is call xs_init
.
Is your application threaded / are you sharing the context between threads? Regardless, if you can provide a bit of sample code, I'd appreciate it.
Also, the current version of crossroads-net targets a stale version of libxs - I've been meaning to update it to support 1.2.0. Hopefully I'll get some time to do that ASAP.
It is multithreaded, but not at this point.
There's basically just this code:
static void Main(string[] args) { RepServer server = new RepServer(); server.Init(); }
private readonly Context _ctx; public RepServer() { _ctx = Context.Create(); //breaks here }
It goes on to do a lot of work afterwards involving many threads, etc, but it doesn't always get to that point. It seems like the only reliable way to make this error go away when it happens is to either log off and log back into Windows or reboot the machine entirely.
Does it make any difference which user account you run the application as?
No, I don't believe so. I'm not sure if it's permissions related because it doesn't happen everytime. One thing I noticed yesterday was that I had an assertion failure on one of 2 applications using XS, I couldn't restart either of them until I logged out and logged back into the box.
On Tue, Jun 26, 2012 at 4:15 AM, Tom Robinson < reply@reply.github.com
wrote:
Does it make any difference which user account you run the application as?
Reply to this email directly or view it on GitHub: https://github.com/jgoz/crossroads-net/issues/3#issuecomment-6569695
Hi,
It seems that sometimes when I start my application, it hangs forever. When I go to debug the problem (usually by restarting and remote debugging), the application is hanging on Context.Create()
Do you know why this would be? It seems to be a Windows related issue as I've never seen it in Linux.
Any help would be greatly appreciated.
Thanks, Calvin