CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Win32::Process & threads show console window

 



jbenezech
Novice

May 18, 2007, 3:30 AM

Post #1 of 1 (244 views)
Win32::Process & threads show console window Can't Post

Hi all,

I'm calling a java process from my perl Win32 Service (Win32::Daemon) like this:


Code
Win32::SetChildShowWindow(0); 
Win32::Process::Create($ProcessObj,
$javaExe,
$commandArgs,
0,
Win32::Process::NORMAL_PRIORITY_CLASS|Win32::Process::CREATE_NO_WINDOW,
$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 ?

Thanks

Jerome

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives