May 18, 2007, 3:30 AM
Post #1 of 1
Win32::Process & threads show console window
I'm calling a java process from my perl Win32 Service (Win32::Daemon) like this:
$installPath) or $retCode = -9;
This worked fine so far and the console window was indeed hidden.
Now I want to do the same think but start my java program from inside a thread.
So my Win32::Dameon spawns a thread which then executes the code above. In that case, the java program is still called but in some situation the window console shows up.
I do not get the window console on my developpement environnement (perl 5.8.8 compiled with perl2exe, XP Pro SP2) but do get it in some live environnements including XP Pro SP2, XP Home.
So you have any idea what is causing the window to show up in some cases ? And how can I solve this problem ?