Problem running app from exe by invocation

Hi,

I have a Java app that runs perfectly when I run it from the command line.

I got C code from the developerWorks site that allows one to launch the app by an exe file. This exe uses Invocation to load the JVM, and supplies the class to run.

The app starts, but then it reaches a certain point and does not move further... This code includes jdk 1.3 classes Timer and TimerTask. It gets stuck right at the point where it creates a new TimerTask.

I changed the code so that it does not use Timer and TimerTask, but now it gets stuck at another point!! This time it is a loop that uses StringBuffer.

I really cannot understand why this is happening. It runsperfectly from the command line, but use the exe to launch it and it gets stuck.

I have another app that I'm launching with the same C code and that works just fine!! Curioser and curioser...

I would really appreciate any insights. If its any help let me know I'll post the code.

Thanks,

Dewang

[1029 byte] By [dewangs] at [2007-9-26 11:24:35]
# 1
If it's small, post the code.Otherwise, try to post what you think are relevant fragments.
bschauwe at 2007-7-2 0:34:29 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

Hi,

Sorry for the delay, but was caught up with some other stuff. I have the same problem with another app! The thread is here

http://forum.java.sun.com/thread.jsp?forum=52&thread=192790

I'm not too sure what part woudl be relevant. Like I said, it runs perfectly from the command line. Only problem is when I use the C program to launch it.

Want me to post the C code? Maybe you could use the code to launch an app and see what happens.

Thanks,

Dewang

dewangs at 2007-7-2 0:34:29 > top of Java-index,Java HotSpot Virtual Machine,Specifications...