christopher sagayam wrote:
> Hi all  ,
> On the same note
> Is it possible to write a win32 GUI perl server daemon script ..
> if  so what are the precautions I should take  ??
> Particularly because the Win32::GUI::Dialog() indefinite Loop
> should not interfere with the while (1){} indefinite loop of
> the perl server
> Is it possible to integrate them both at all ?

you can put Win32::GUI::DoEvents inside your 'server' loop,
without Win32::GUI::Dialog() at all. the GUI will not be
so responsive as with Win32::GUI::Dialog, but this is the
'best-effort' possible with a single-threaded model.
if you wanna go multi thread, you should look at using
fork (only with perl 5.6.0) and some IPC mechanism (pipes,
sockets, shared memory, etc).


cheers,
Aldo

__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;



Reply via email to