944,193 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2855
  • VB.NET RSS
Mar 27th, 2007
0

OpenFileDialog crashes EXPLORER.EXE

Expand Post »
Hi All,

Explorer.exe crashes when i run my application on a customer's computer (in fact: on all of their computers!). This happens usually when I browse through directories using a OpenFileDialog.

They run on Windows NT build 2600 with Novell groupwise

Error signature:
AppName: explorer.exe
AppVer: 6.0.2900.2180
ModName: comctl32.dll
ModVer: 6.0.2900.2982
Offset: 004d793

Now the way I've implemented my dialog box looks like this:

VB.NET Syntax (Toggle Plain Text)
  1.  
  2. If myProject.LastDir = "" Then
  3. dlgOpenAsc.InitialDirectory = "c:\"
  4. Else
  5. dlgOpenAsc.InitialDirectory = myProject.LastDir
  6. End If
  7.  
  8. dlgOpenAsc.Filter = "ArcInfo grid (*.asc)|*.asc"
  9. dlgOpenAsc.FileName = ""
  10. dlgOpenAsc.ShowDialog()
  11. txtAhnGrid.Text = dlgOpenAsc.FileName
  12. myProject.NBWToetsing.AHNGrid = New AscGrid(dlgOpenAsc.FileName, True)
Is there any known error regarding .NET 2.0 and Explorer.exe, or am I just implementing my stuff in the wrong way?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Siebe is offline Offline
6 posts
since Jan 2007
Mar 28th, 2007
0

Re: OpenFileDialog crashes EXPLORER.EXE

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
Sponsor
Reputation Points: 520
Solved Threads: 268
Code Monkey
ShawnCplus is offline Offline
1,564 posts
since Apr 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: how can i develop dictionary translator using vb.net?
Next Thread in VB.NET Forum Timeline: Dynamically changing a form at Run Time





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC