|
-
September 30th, 2008, 11:58 AM
#1
Memory error after invoking explorer
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|