On Thursday, January 29, 2004, at 02:19 PM, Dar Scott wrote:
Does anyone have a way to check if another instance of a standalone is already running, and if so close the one that was just opened?
Try 'accept' on some obscure port. If it fails, assume that another app is running. (Immediately close any connections in the call back, should any be made.) I'd try UDP first. If you need to listen to a port anyway, you are set.
Though this is a little weird, it is multi-platform.
Dar
****************************************
Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services
****************************************_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
