That is really weird. Really all Inline::Java is doing is executing the java.exe process and running some code.
If this was a JNI issue I could understand, but in this case I can't see what can cause these crashes/hangups. Maybe there's something wrong with the way I exit from the Java process when I'm done.
Do you get this dump only when callbacks are used?
I'll try to look in to it.
Patrick
---------------------------------- | Patrick LeBoutillier | [EMAIL PROTECTED]
From: Alexander Stoddard <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Java not exitting cleanly Date: Wed, 21 Jan 2004 11:11:43 -0500
I using Inline-Java-0.44 on a Win2k machine with Active State Perl v5.8.2. The Java I am using is HotSpot 1.4.2-b28, mixed mode. I am not using the JNI.
As a total Inline newbie I can try and say what I see but I can't explain a thing:
I see the same strange pause the Jim Hargrave reported for 0.43 at
10_1_shared_alone....ok 4/4
If I kill the java process then the tests continue with the other 'shared' tests being skipped.
Everything else passes (in fact '10_1_shared_alone' all passed too as shown).
I also get intermittent java termination errors from Dr. Watson after other tests when running the test suite.
If I run the example code for the Swing callback the example works but the program exit is pathological.
I do not get a Java error per se but a massive dump headed:
Full thread dump Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode):
"Thread-0" daemon prio=7 tid=0x1833a7c8 nid=0x608 runnable [0..0]
"Java2D Disposer" daemon prio=10 tid=0x18300d48 nid=0x504 in Object.wait() [1a70
f000..1a70fd90]
...
This output including the addresses is consistent.
I am then returned to the command line but without the command prompt. Pressing enter recovers the command prompt.
It appears the callback loop is stable. If I comment out the call to StopCallbackLoop():
sub button_pressed {
print("click!\n") ; # prints click!
# $b->StopCallbackLoop() ;
}
Then I can click to my heart's content.
I hope this is helpful to some folks who might actually understand what is going on.
Alex Stoddard
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963