It is most likely cause by DEP yelling at your program.
I'm not sure if there is an API to add your program to the exception list. You can test it on one machine by going to Control Panel -> System - > Advanced -> Click on Performance - > DEP and then adding your program to the exception list.
If that doesn't help, the only other thing I thought of was this.
When you build and run the app on your machine does it give the same problem? If it does what exception does it throw? in that case put the OpenDialog code around try/catch blocks
Try
<Your Code Here>
Catch Break as New <thrown exception here>
Endtry
That's the only way I could think of that would solve a problem.
Last edited by ShawnCplus; Mar 28th, 2007 at 11:42 pm. Reason: Forgot step
Reputation Points: 520
Solved Threads: 268
Code Monkey
Offline 1,564 posts
since Apr 2005