tuicemen Member Licensed User Longtime User Jan 21, 2015 #1 As posted in another thread Is there away to disallow multi instances from running? For a release build you can use launch4j to prevent a non UI or even a UI program from loading a second instance. However I was wondering if this could be accomplished someway in the code currently?
As posted in another thread Is there away to disallow multi instances from running? For a release build you can use launch4j to prevent a non UI or even a UI program from loading a second instance. However I was wondering if this could be accomplished someway in the code currently?
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2015 #2 Are you implementing a server? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2015 #4 The server should fail to start if there is already a running server that listens to the same port. You can use Try / Catch to catch the error and close the second instance. Upvote 0
The server should fail to start if there is already a running server that listens to the same port. You can use Try / Catch to catch the error and close the second instance.
tuicemen Member Licensed User Longtime User Jan 23, 2015 #5 Ok I had tried that but probably had it in the wrong place. Upvote 0