I have written a POE application and have been using the ActiveState PDK 5.1 to create an NT service that primarily polls a directory and does some other things but is similar to the DirWatch component.
The main function implements the polling using the kernel call: $kernel->delay_set(checkdir => 10); Everything works fine running as an NT service, until the user who started the service logs out of the operating system session and the service stops. It looks from the application log files that POE thinks that there are no pending actions and terminates the POE->run; cycle. If I stay logged into the application is has successfully run for weeks. The NT service is set to login into the local system account and it does not seem to matter if the interact with the desktop option is set or not. I have also tried having the service log into other accounts but it does not make any difference. Does anyone have any clues as to why the POE session would terminate or any pointers as to what is happening? Regards, Dr. Harley Mackenzie HARD software