Hello,
I am running my windows application on a 64 bit machine with MS .NET
Framework 2.0 (x64). When using the FolderBrowserDi alog an unhandled
exception was coming time and again.
After putting the code to show the FolderBrowserDi alog in a try catch I
was able to catch the exception but my application was still crashing.
A corresponding error was logged by .net Framework in the Apllication
Event Logs.
The stack trace and the Event Log entry are given below.
If anyone could please explain what's wrong I would be much obliged.
Thanks ,
Mohit
=============== =============== =============== =============== =====
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime. InteropServices .SEHException: External component has
thrown an exception.
at
System.Windows. Forms.UnsafeNat iveMethods.Shel l32.SHBrowseFor Folder(BROWSEIN FO
lpbi)
at System.Windows. Forms.FolderBro wserDialog.RunD ialog(IntPtr
hWndOwner)
at System.Windows. Forms.CommonDia log.ShowDialog( IWin32Window owner)
at
VScanMCInstalle r.UCApplication Settings.button BrowseSysFilePa th_Click(Object
sender, EventArgs e) in
G:\ALIQUIN\VSca nSolution\Setup Projects\VScanM CInstaller\UCAp plicationSettin gs.cs:line
239
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage&
m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
VScanMCInstalle r
Assembly Version: 1.0.60920.1
Win32 Version: 1.0.060920.1
CodeBase:
file:///C:/Mohit/VScanMCInstalle r/bin/Debug/VScanMCInstalle r.exe
----------------------------------------
System.Windows. Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows. Forms/2.0.0.0__b77a5c 561934e089/System.Windows. Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c 561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f 7f11d50a3a/System.Drawing. dll
----------------------------------------
System.Configur ation
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configur ation/2.0.0.0__b03f5f 7f11d50a3a/System.Configur ation.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c 561934e089/System.Xml.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config ) must have the
jitDebugging value set in the system.windows. forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
=============== =============== =============== =============== =======
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 1000
Date: 9/21/2006
Time: 2:05:43 AM
User: N/A
Computer: THORIUM
Description:
The description for Event ID ( 1000 ) in Source ( .NET Runtime 2.0
Error Reporting ) cannot be found. The local computer may not have the
necessary registry information or message DLL files to display messages
from a remote computer. You may be able to use the /AUXSOURCE= flag to
retrieve this description; see Help and Support for details. The
following information is part of the event: vscanmcinstalle r.exe,
1.0.60920.1, 451254a3, unknown, 0.0.0.0, 00000000, 0, 000000000000110 a.
Data:
0000: 41 00 70 00 70 00 6c 00 A.p.p.l.
0008: 69 00 63 00 61 00 74 00 i.c.a.t.
0010: 69 00 6f 00 6e 00 20 00 i.o.n. .
0018: 46 00 61 00 69 00 6c 00 F.a.i.l.
0020: 75 00 72 00 65 00 20 00 u.r.e. .
0028: 20 00 76 00 73 00 63 00 .v.s.c.
0030: 61 00 6e 00 6d 00 63 00 a.n.m.c.
0038: 69 00 6e 00 73 00 74 00 i.n.s.t.
0040: 61 00 6c 00 6c 00 65 00 a.l.l.e.
0048: 72 00 2e 00 65 00 78 00 r...e.x.
0050: 65 00 20 00 31 00 2e 00 e. .1...
0058: 30 00 2e 00 36 00 30 00 0...6.0.
0060: 39 00 32 00 30 00 2e 00 9.2.0...
0068: 31 00 20 00 34 00 35 00 1. .4.5.
0070: 31 00 32 00 35 00 34 00 1.2.5.4.
0078: 61 00 33 00 20 00 69 00 a.3. .i.
0080: 6e 00 20 00 75 00 6e 00 n. .u.n.
0088: 6b 00 6e 00 6f 00 77 00 k.n.o.w.
0090: 6e 00 20 00 30 00 2e 00 n. .0...
0098: 30 00 2e 00 30 00 2e 00 0...0...
00a0: 30 00 20 00 30 00 30 00 0. .0.0.
00a8: 30 00 30 00 30 00 30 00 0.0.0.0.
00b0: 30 00 30 00 20 00 66 00 0.0. .f.
00b8: 44 00 65 00 62 00 75 00 D.e.b.u.
00c0: 67 00 20 00 30 00 20 00 g. .0. .
00c8: 61 00 74 00 20 00 6f 00 a.t. .o.
00d0: 66 00 66 00 73 00 65 00 f.f.s.e.
00d8: 74 00 20 00 30 00 30 00 t. .0.0.
00e0: 30 00 30 00 30 00 30 00 0.0.0.0.
00e8: 30 00 30 00 30 00 30 00 0.0.0.0.
00f0: 30 00 30 00 31 00 31 00 0.0.1.1.
00f8: 30 00 61 00 0d 00 0a 00 0.a..... 0 2838 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Anja |
last post by:
I have installed the new Visual Studio 2003 and implemented the
FolderBrowserDialog.
Everything works fine, if I open the FolderBrowserDialog before
opening a Database Connection.
If I open the FolderBrowserDialog after I opened the database
connection no folders will be displayed in the FolderBrowserDialog.
It's empty.
|
by: |
last post by:
Hi,
The following code shows the FolderBrowserDialog = broken.
FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.ShowNewFolderButton = false;
folderDialog.ShowDialog();
Setting ShowNewFolderButton to false does bugger all. If I set this to
false it is STILL shown. Genius.
|
by: Carsten |
last post by:
Hi,
I have a problem with instantiating a Web service. When the constructor for
the proxy is called a SEHException is thrown. The call stack is shown below:
System.Runtime.InteropServices.SEHException: External component has thrown
an exception.
|
by: Droopy |
last post by:
Hi,
I am working for a few month on a C# project (mixed dll for calling C++
legacy code with a C# wrapper).
Since this morning, I can't start my application anymore !
I got a System.Runtime.InteropServices.SEHException when the app load (in
my main Form, in InitializeComponent (), creating a TextBox).
Here below, you will find the output from VS.
|
by: Ken Durden |
last post by:
I'm getting the following exception coming out of a block of unmanaged
C++ code.
Thread executed for 1.03 sec and died with the following exception:
External component has thrown an exception.
==== Primary Call Stack ====
at ?Setup@EdgeTopImageProcessor@Edge@InspectionAlgorithm@August@@$$FQAEXHHHHW4eBayerFormatType@BayerImage@234@ABUEdgeTopParam@1234@PAVErrorTraveler@Unmanaged@Infrastructure@4@@Z(EdgeTopImageProcessor*
, Int32 , Int32...
| |
by: hhh12347 |
last post by:
FolderBrowserDialog crashes on my Windows 2000 computer.
Here is a C# test program:
using System;
using System.Windows.Forms;
public class TestForm : Form {
FolderBrowserDialog folderBrowserDlg;
OpenFileDialog openFileDlg;
|
by: Chris |
last post by:
Hi
As I understand things, when my unmanaged C++ code throws
an exception it is wrapped into a SEHException when it reaches
managed code. Now is there a way from the managed catch clause
to get the original unmanaged exception class that was wrapped
in the SEHException ?
Chris.
|
by: Marcel Brekelmans |
last post by:
Hi,
I'm trying to display a MessageBox after a FolderBrowserDialog. I see that
it gets displayed, but not activated. The form is not in front and when I
have some other forms open the MessageBox is hidden behind them. The problem
seems to occur only after using the FolderBrowserDialog.
Has anyone seen this before?
Thanks
|
by: THEDuke141 |
last post by:
Hi guys,
I've lately been plagued with a SEHException while trying to debug VB.Net applications. I'm not exactly sure when the problem started to appear but it literally just appeared out of nowhere as debugging was working fine one day and then this error the next.
I've read plenty of posts relating to this error but they all seem outdated and they mostly seem to point to Application.EnableVisualStyles() which i do not use.
Also note...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |