Re: running POE as a windows service

2009-09-30 Thread Andrew Feren
PerlSvc works fine with POE. I have several apps that use it. Not sure about the cross compiling. At work we have both Win32 and Linux application, but we build natively on each platform. -Andrew Andrew O'Brien wrote: Hi Andreas, I was trying to find a solution how to run POE applicati

Re: session not stopping

2009-09-30 Thread Andrew Feren
What version of POE are you running? I gather from your other email that you are running on Win32. Having the app work for a minute or so and then hang sounds suspiciously like https://rt.cpan.org/Ticket/Display.html?id=49379 -Andrew Andreas Altergott wrote: Hi, my session is behaving str

Re: session not stopping

2009-09-30 Thread Andreas Altergott
Hi, Andrew Feren wrote: > What version of POE are you running? I gather from your other email > that you are running on Win32. It is indeed a Windows XP SP3 (32 Bit) system. Perl (ActiveState) 5.10.1, POE 1.006 (newest Version from http://ppm4.activestate.com/MSWin32-x86/5.10/1006/package.xml)

Re: session not stopping

2009-09-30 Thread Olivier Mengué
2009/9/30 Andreas Altergott > It simply does not shut down, although there are no more jobs running > from my point of view. I don't understand yet though, how I can check, > if there is indeed something still keeping it alive. > > (replying to the list this time. Grrr) Do you send the 'shutdow

Re: session not stopping

2009-09-30 Thread Andreas Altergott
Hi, Olivier Mengué wrote: > Do you send the 'shutdown' event to the > POE::Compononent::Win32::ChangeNotify session in your SIGINT handler? Yes, I do. Here's the promised minimal source example, which still does reproduce the error. After running for about 10 minutes it did not terminate after

Re: session not stopping

2009-09-30 Thread Andreas Altergott
Hi, Removing all the POE::Component::Win32::ChangeNotify part from the supplied source made the application run perfectly. So this component does something after running for a long time, that keeps the session running, even after it gets a shutdown event. Is there a possibility to see what keeps

Re: session not stopping

2009-09-30 Thread Andreas Altergott
Hi, Andreas Altergott wrote: > Is there a possibility to see what keeps the session busy? Ok, it seems this is not a POE problem, but a Win32::ChangeNotify. It stops working after a few minutes. Adding a new file, or removing one, fires up a change notify event in the first few minutes only. A

Re: running POE as a windows service

2009-09-30 Thread Olivier Mengué
2009/9/29 Andreas Altergott > Hi, > > I was trying to find a solution how to run POE applications as a Windows > service. I've found two solutions so far, but I am not quite satisfied > with them. > I'm also writing a Win32 service with POE for a few months now. You may have seen my recent post