Friday, April 10, 2009

Threading Bug?

As I said before, I created functionality where the DLL can post a string to the Java app. My problem is that if I log that message with the java logger, or try to show it on the screen in Swing, the message:
a) Fails to show the string.
b) Stops the flow of control.

I’m not saying things like “deadlock”, "blocks" or even “hangs” because I don’t really know what is going on.
Within my display method in Java,
SwingUtilities.invokeAndWait
and
SwingUtilities.invokeLater
completely hang, both with threads and runnables.

I tried starting a new thread but that fails too.

Now I'm going to read the chapters on “Monitors” and “Exceptions” to see what exotic BS might be going on.

Speaking of exceptions, I found that yes indeed, the native code is completely swallowing my exceptions from within Java. So the bug above is really hard to diagnose.

No comments:

Post a Comment