ANN: Free unit that allows only one instance of the application
From: Oleg Subachev (oleg_at_urvb.ru)
Date: 07/12/04
- Next message: Lauchlan M: "Re: Install components"
- Previous message: Ivo Bauer: "Re: Install components"
- Next in thread: Robert Cerny: "Re: Free unit that allows only one instance of the application"
- Reply: Robert Cerny: "Re: Free unit that allows only one instance of the application"
- Reply: George K: "Re: Free unit that allows only one instance of the application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 12 Jul 2004 14:50:19 +0600
www.posolsoft.com/files/common/psl_1_STOP.zip
Prevents launching of the second instance of the application
but activates the first instance at the same time.
If second instance is launched with 'STOP' command line argument,
then the first instance is terminated but not activated.
Usage:
Changing in project file:
a) add psl_1_STOP in 'uses' clause
b) change project body as follows:
if psl1_IS_1ST_INSTANCE( True ) then begin
// prevents launching of the second instance of the application from any
directory
// if psl1_IS_1ST_INSTANCE( False ) then begin
// prevents launching of the second instance of the application from the
same directory
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end
else
psl1_ACTIVATE_OR_STOP_1ST_INSTANCE;
-- Best regards, Oleg Subachev subachev@ural.ru
- Next message: Lauchlan M: "Re: Install components"
- Previous message: Ivo Bauer: "Re: Install components"
- Next in thread: Robert Cerny: "Re: Free unit that allows only one instance of the application"
- Reply: Robert Cerny: "Re: Free unit that allows only one instance of the application"
- Reply: George K: "Re: Free unit that allows only one instance of the application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|