meshman
September 30th, 2008, 11:58 AM
I have this in my code, under a context menu selection:
Process.Start("explorer.exe", "C:\\");
The program runs fine and I select this item from the context menu. The explorer window opens no problem and then the program stops in program.cs on this line:
Application.Run(new Form1());
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
The really strange thing is, if I step through this in debug, I can open the window over and over no problem. The second I remove the breapoint and run it, it crashes like above.
Any ideas? It seems to have a mind of its own.
Thanks!
Process.Start("explorer.exe", "C:\\");
The program runs fine and I select this item from the context menu. The explorer window opens no problem and then the program stops in program.cs on this line:
Application.Run(new Form1());
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
The really strange thing is, if I step through this in debug, I can open the window over and over no problem. The second I remove the breapoint and run it, it crashes like above.
Any ideas? It seems to have a mind of its own.
Thanks!