AWT GUI WON'T EXIT!!!

Hi All

I have some java methods which I invoke using C++. Some methods contain a splash window created using awt (extending Window class).

The GUI is displayed but the java code won't exit after executing the GUI. Basically the C++ code halts because of this.

Can some body help me with this...

Thank You

[344 byte] By [asiriw] at [2007-9-26 10:05:13]
# 1
When starting any GUI program in JAVA, AWT starts a thread to catch events.You must use System.exit(0) when you want to exit that gui application.
v.pavlov at 2007-7-1 21:58:46 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Thank You For the interest....I am doing exactly the thing you have suggested. But the problem is that the System.exit(0) also terminates the C++ program also. Can you suggest any workarounds for this.Also is it the same with swing components?Asiri
asiriw at 2007-7-1 21:58:46 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Thank You For the interest....I am doing exactly the thing you have suggested. But the problem is that the System.exit(0) also terminates the C++ program also. Can you suggest any workarounds for this.Also is it the same with swing components?Asiri
asiriw at 2007-7-1 21:58:46 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
then you may call DestroyJavaVM in jni code
v.pavlov at 2007-7-1 21:58:46 > top of Java-index,Java HotSpot Virtual Machine,Specifications...