Hi,
First of all - Great UDF, I've been using it to compile a few monitoring services and it seem to work fine. Only one issue - one of the monitors I wrote seem to hang during loop. I've tried to debug it but I can't seem to find the reason.
the service simply monitor a TCP port on a remote server, I've added some debuging features to the script making it write everything to a text file. as far as I can see, the actual monitoring part of the script is working fine, after each successful test the script sleep for 60 seconds (I've added sleep(6000) inside the main function loop). the loop will run for 30-40 times and then hang with no reason. acording to the debuging file it while sleeping.
While running as an EXE file (not a service) it will run for days without hanging.
I suspect it has something to do way windows run services.
Do you have any idea what can cause it? alternatively - is there a better way make the service hold for 60 seconds?
10x in advance
Modie.