Project: Single Instance Developer: Borja Lopez Urkidi, Krzysztof Otrebski Organization: NEGU Soft Web: http://www.negusoft.com
This is a utility to control the creation of instances across the local system. This means we can check if there is already an instance of certain program running at the moment. It is also possible to implement actions to be performed when attempting to create a new instance if there was already one active.
A socket based mechanism is used to establish the instances. The port number is saved in file in temp directory. If new instance can to connect on this port, meaning that there is another one running. Application starts searching port with 10000 as defaults and goes up to 20000. If you want to change starting port pass system variable singleInstance.startPort
, for example -DsingleInstance.startPort=32131
.