Re: [Ikvm-developers] Threads getting stopped
Brought to you by:
jfrijters
|
From: Eric P. <er...@gm...> - 2013-02-14 14:19:50
|
Hi all - I finally figured out what was happening with this. The Java code was calling into C++ code which ultimately had a memory access violation. The memory access violation didn't kill the whole app but it did kill the thread (but didn't manifest itself as an exception that could be caught). I fixed the memory access violation in the C++ code and that solved the problem. -- Eric On Thu, Jan 31, 2013 at 3:57 AM, Jeroen Frijters <je...@su...> wrote: > Hi Eric, > > IKVM does not stop threads. In what context does your code run (e.g. > console application, Winforms app, service, ASP.NET)? > > You could try setting java.lang.Thread.setUncaughtExceptionHandler() to > get notified if a thread dies because of an unhandled exception. > > Without more information it's hard to give specific advice. > > Regards, > Jeroen > > > -----Original Message----- > > From: Eric Pederson [mailto:er...@gm...] > > Sent: Wednesday, January 30, 2013 21:29 > > To: ikv...@li... > > Subject: [Ikvm-developers] Threads getting stopped > > > > Dear all: > > > > I have a situation where I am starting up threads but then they are > > getting stopped by something. The code stops executing and > > thread.isAlive() returns false. Even threads that I don't start are > > getting stopped - for example I have a javax.jms.MessageListener > > registered with a JMS Topic (using Tibco EMS) and the Tibco thread that > > calls that listener is getting stopped too. > > > > My suspect IKVM because when I run the same code outside of IKVM the > > threads are not stopped. > > > > Does IKVM stop threads? How do you recommend that I debug this > > problem? > > > > I am using IKVM 7.2.4630.5. > > > > Thanks, > > > > > > -- Eric > > |