OpenFileDialog crashes EXPLORER.EXE

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2007
Posts: 6
Reputation: Siebe is an unknown quantity at this point 
Solved Threads: 0
Siebe Siebe is offline Offline
Newbie Poster

OpenFileDialog crashes EXPLORER.EXE

 
0
  #1
Mar 27th, 2007
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:

  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?
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,425
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 231
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: OpenFileDialog crashes EXPLORER.EXE

 
0
  #2
Mar 28th, 2007
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
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC