I'm running a simple Nettalk Soap Server, as a service.
I've noticed that at random times it just GPF's. Because I've added the GPF Reporter template, I've configured the service to restart, so it doesn't cause me too much trouble.
Occasionally, the service restarts so quickly, that the webserver doesn't seem to be able to bind to the port. Everything seems to runs OK, but I just can't connect to the server. Manually restarting the service fixes everything. I've tried putting a SLEEP(5000) statement into the code to make the program pause before initializing the port, and this seems to improve matters, but its a bit clunky.
What I'd like to do it test to see if the port was correctly initialized, and then loop x number of times retrying before giving up.
Can I test for some kind of error in ThisWebServer.Open() or is this situation something that Nettalk won't actually be able to detect?
Regards,
Neil Porter
Nettalk 6.51