anotherProcessStarted() would certainly be a better way to do what you describe, but I’m a bit worried that the interprocess stuff isn’t working. What OS is this?
Dammit, I’m trying to find a thread where we (I & Jules) discussed that the whole mechanism of anotherInstanceStarted is non-functional on Mac OS X, but I can’t find it (even by searching threads in which I’ve posted)!! Also, the conclusion was that Jules recommended me to “roll my own”, ring any bells ?
Oh, and to use an InterprocessLock doesn’t work, well… it does work, but for admin users only. If you try to run the application as a “Standard” user, InterprocessLock will always be “locked” (indicating another instance is active).
Sorry, I don’t quite follow ? I have no modal loops. The InterprocessLock::enter(0) always returns false when running under a “Standard” user, which means you can’t execute the application at all (as that is the condition for another active instance). But when running with a “Admin” user, it works as expected.
Ah, I see. Well I do use 1.53 (oops I didn’t mention that,did I ? so that will be fixed then. Regarding receiving events, I won’t have that particular problem.
Well… the HTTP stuff uses events internally, so it could indeed be causing your network problem.[/quote]
But I’m well out of initialise when we talk http stuff (which is unrelated to this thread)… :?