Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: disable poweroff function Pin
leppie5-Aug-04 0:45
leppie5-Aug-04 0:45 
GeneralRe: disable poweroff function Pin
Heath Stewart5-Aug-04 1:46
protectorHeath Stewart5-Aug-04 1:46 
GeneralRe: disable poweroff function Pin
Heath Stewart5-Aug-04 2:24
protectorHeath Stewart5-Aug-04 2:24 
GeneralRe: disable poweroff function Pin
Dave Kreskowiak5-Aug-04 8:10
mveDave Kreskowiak5-Aug-04 8:10 
GeneralRe: disable poweroff function Pin
JockerSoft5-Aug-04 22:25
JockerSoft5-Aug-04 22:25 
Questionhow to check if instance is running Pin
Stephan Wright4-Aug-04 22:48
Stephan Wright4-Aug-04 22:48 
AnswerRe: how to check if instance is running Pin
leppie4-Aug-04 22:57
leppie4-Aug-04 22:57 
AnswerRe: how to check if instance is running Pin
exhaulted4-Aug-04 23:09
exhaulted4-Aug-04 23:09 
Hi stephan,
Firstly, i'm sure there is a better way of doing it than this but one of the programmes we use at work does it this way and it works for us, it creates a "Lock" file.
When the instance loads it first checks for this lock file, if it doesn't exist the program loads and creates the lock file, if the file already exists then an instance is already running so the program can just display an error and shut down.
When the instance finishes running just delete the lock file.

Like i said, not the best way of doing it and i'm sure someone will post the correct way to check but this is simple and as long as it's implimented correctly it will be effective.

Kev Pearman MCP
GeneralRe: how to check if instance is running Pin
leppie5-Aug-04 0:48
leppie5-Aug-04 0:48 
GeneralRe: how to check if instance is running Pin
Heath Stewart5-Aug-04 1:44
protectorHeath Stewart5-Aug-04 1:44 
AnswerRe: how to check if instance is running Pin
Michael P Butler5-Aug-04 0:43
Michael P Butler5-Aug-04 0:43 
GeneralRe: how to check if instance is running Pin
Stephan Wright5-Aug-04 1:09
Stephan Wright5-Aug-04 1:09 
GeneralBHO's vs Firewalls Pin
Stuggo4-Aug-04 21:53
Stuggo4-Aug-04 21:53 
GeneralRe: BHO's vs Firewalls Pin
Brian Delahunty4-Aug-04 23:22
Brian Delahunty4-Aug-04 23:22 
GeneralRe: BHO's vs Firewalls Pin
Stuggo5-Aug-04 0:26
Stuggo5-Aug-04 0:26 
GeneralRe: BHO's vs Firewalls Pin
Heath Stewart5-Aug-04 1:33
protectorHeath Stewart5-Aug-04 1:33 
GeneralRe: BHO's vs Firewalls Pin
Dave Kreskowiak5-Aug-04 7:43
mveDave Kreskowiak5-Aug-04 7:43 
GeneralWebSetup project Pin
Alex Getman4-Aug-04 21:41
Alex Getman4-Aug-04 21:41 
GeneralRe: WebSetup project Pin
Alex Getman4-Aug-04 22:18
Alex Getman4-Aug-04 22:18 
QuestionHow to get imported DLL handle Pin
fu04-Aug-04 18:08
fu04-Aug-04 18:08 
AnswerRe: How to get imported DLL handle Pin
Nick Parker4-Aug-04 18:38
protectorNick Parker4-Aug-04 18:38 
GeneralRe: How to get imported DLL handle Pin
fu09-Aug-04 20:10
fu09-Aug-04 20:10 
Generaldebugging Pin
Sudee4-Aug-04 17:57
Sudee4-Aug-04 17:57 
GeneralRe: debugging Pin
Nick Parker4-Aug-04 18:06
protectorNick Parker4-Aug-04 18:06 
GeneralRe: debugging Pin
Sudee4-Aug-04 18:43
Sudee4-Aug-04 18:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.