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:

If myProject.LastDir = "" Then
  dlgOpenAsc.InitialDirectory = "c:\"
Else
  dlgOpenAsc.InitialDirectory = myProject.LastDir
End If

dlgOpenAsc.Filter = "ArcInfo grid (*.asc)|*.asc"
dlgOpenAsc.FileName = ""
dlgOpenAsc.ShowDialog()
txtAhnGrid.Text = dlgOpenAsc.FileName
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?

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.

This article has been dead for over six months. Start a new discussion instead.