954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

OpenFileDialog crashes EXPLORER.EXE

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?

Siebe
Newbie Poster
6 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

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

Catch Break as New
Endtry

That's the only way I could think of that would solve a problem.

ShawnCplus
Code Monkey
Team Colleague
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You