|
-
Feb 18th, 2008, 06:12 AM
#1
Thread Starter
Lively Member
Detect Multiple instances of one app running in different Mode
Morning all,
I have an application and does a number of things i.e. runs in different modes. The mode is specified at command line level i.e. flag on the .exe shortcut.
Thing is only one instance of the app must run for each mode. Is there any way I can make the app detect another instance of the app running with the same mode?
In Task Manager the multiple instances of the app are listed with the same name.
Thanks in advance for any solutions :-)
-
Feb 18th, 2008, 07:25 AM
#2
Re: Detect Multiple instances of one app running in different Mode
You would have to implement your own functionality to have the new instance communicate with the existing instance(s) to determine whether it should continue or not. The single-instance functionality that forms part of the VB application framework is implemented using Remoting over TCP. You can implement your own single-instance functionality over TCP, IPC or whatever adn add your own behaviour. I believe kleinma did this recently to get around a firewall issue with Remoting over TCP so you might PM him.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|