|
-
October 6th, 2008, 09:45 AM
#1
How do I run an external process from C#?
I'm trying to open an explorer window from within a C# program (or launch anything externally like a document or MP3).
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."
I've tried many different examples from simple to verbose and the program crashes AFTER the window has been opened (or document loaded or song played)
Is there something I'm missing?
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
|