R
rollasoc
Hi,
When I load my application I get the the above first chance exception.
Stepping through my code it appears to be on the last line of the these two
lines
Process current = Process.GetCurrentProcess();
Process[] processes = Process.GetProcessesByName (current.ProcessName);
Any idea wither I need to worry about it (I'd rather it didn't except) and \
or how to fix this.
INFO: What I'm trying to do with this code is see if the application is
running already and if it is post a
message to it's window and not run a second instance. (if it doesn't exist
I call my forms constructor).
I don't appear to get the exception if the process is already running.
When I load my application I get the the above first chance exception.
Stepping through my code it appears to be on the last line of the these two
lines
Process current = Process.GetCurrentProcess();
Process[] processes = Process.GetProcessesByName (current.ProcessName);
Any idea wither I need to worry about it (I'd rather it didn't except) and \
or how to fix this.
INFO: What I'm trying to do with this code is see if the application is
running already and if it is post a
message to it's window and not run a second instance. (if it doesn't exist
I call my forms constructor).
I don't appear to get the exception if the process is already running.