473,785 Members | 2,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Closing form kills the app

Hi

I have this problem on winxp/offixexp machine but not on win2k/office2k
machines.

I have a main form which has a panel which has a child form. The child form
opens a dialog form. When the dialog form is closed using the 'x' button or
using me.close in code, the app crashes. The source the error is pointed as
my main app loop; Application.Run (frmMain) in Sub Main.

I am totally baffled by this error. Any ideas to solve this would be
appreciated. I am using vs.net 2003 with framework 1.1.

=============== =============== =============== ===

For those with a stronger heart, here is more information; I used the
Windows Debugging Tools which provided the trace but with added problem that
app crashes earlier during the opening of the child form. Here is the trace
anyhow. Thanks.

Microsoft (R) Windows Debugger Version 6.2.0013.1
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: C:\Events Manager\Contact s\bin\Contacts. exe
Symbol search path is: *** Invalid ***
*************** *************** *************** *************** *************** *
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
*************** *************** *************** *************** *************** *
Executable search path is:
ModLoad: 11000000 11074000 Contacts.exe
ModLoad: 77f50000 77ff7000 ntdll.dll
ModLoad: 79170000 79196000 C:\WINDOWS\syst em32\mscoree.dl l
ModLoad: 77e60000 77f46000 C:\WINDOWS\syst em32\KERNEL32.d ll
ModLoad: 77dd0000 77e5d000 C:\WINDOWS\syst em32\ADVAPI32.d ll
ModLoad: 78000000 78086000 C:\WINDOWS\syst em32\RPCRT4.dll
(a90.884): Break instruction exception - code 80000003 (first chance)
eax=00241eb4 ebx=7ffdf000 ecx=00000000 edx=77f51301 esi=00241eb4
edi=00241f48
eip=77f75a58 esp=0012fb38 ebp=0012fc2c iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
ntdll.dll -
ntdll!DbgBreakP oint:
77f75a58 cc int 3
0:000> SXE clr
0:000> g
ModLoad: 63180000 631e5000 C:\WINDOWS\syst em32\SHLWAPI.dl l
ModLoad: 77c10000 77c63000 C:\WINDOWS\syst em32\msvcrt.dll
ModLoad: 77c70000 77cb0000 C:\WINDOWS\syst em32\GDI32.dll
ModLoad: 77d40000 77dcc000 C:\WINDOWS\syst em32\USER32.dll
ModLoad: 791b0000 79412000
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ mscorwks.dll
ModLoad: 7c340000 7c396000
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ MSVCR71.dll
ModLoad: 79040000 79085000
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ fusion.dll
ModLoad: 773d0000 77bc2000 C:\WINDOWS\syst em32\SHELL32.dl l
ModLoad: 71950000 71a34000
C:\WINDOWS\WinS xS\x86_Microsof t.Windows.Commo n-Controls_6595b6 4144ccf1df_6.0
..10.0_x-ww_f7fb5805\com ctl32.dll
ModLoad: 77340000 773cb000 C:\WINDOWS\syst em32\comctl32.d ll
ModLoad: 79780000 79980000
c:\windows\micr osoft.net\frame work\v1.1.4322\ mscorlib.dll
ModLoad: 79980000 79ca6000
c:\windows\asse mbly\nativeimag es1_v1.1.4322\m scorlib\1.0.500 0.0__b77a5c5619 3
4e089_e39a4bbf\ mscorlib.dll
ModLoad: 79510000 79523000
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ mscorsn.dll
ModLoad: 771b0000 772d1000 C:\WINDOWS\syst em32\ole32.dll
ModLoad: 5ad70000 5ada4000 C:\WINDOWS\Syst em32\uxtheme.dl l
ModLoad: 74720000 74764000 C:\WINDOWS\Syst em32\MSCTF.dll
ModLoad: 79430000 7947c000
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ MSCORJIT.DLL
ModLoad: 51a70000 51af0000
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ diasymreader.dl l
ModLoad: 7b610000 7b806000
c:\windows\asse mbly\gac\system .windows.forms\ 1.0.5000.0__b77 a5c561934e089\s y
stem.windows.fo rms.dll
ModLoad: 7b810000 7baee000
c:\windows\asse mbly\nativeimag es1_v1.1.4322\s ystem.windows.f orms\1.0.5000.0 _
_b77a5c561934e0 89_4fe4239f\sys tem.windows.for ms.dll
ModLoad: 7b0a0000 7b1cc000
c:\windows\asse mbly\gac\system \1.0.5000.0__b7 7a5c561934e089\ system.dll
ModLoad: 7b1d0000 7b3aa000
c:\windows\asse mbly\nativeimag es1_v1.1.4322\s ystem\1.0.5000. 0__b77a5c561934 e
089_1f74a331\sy stem.dll
ModLoad: 7b490000 7b506000
c:\windows\asse mbly\gac\system .drawing\1.0.50 00.0__b03f5f7f1 1d50a3a\system. d
rawing.dll
ModLoad: 7b510000 7b5de000
c:\windows\asse mbly\nativeimag es1_v1.1.4322\s ystem.drawing\1 .0.5000.0__b03f 5
f7f11d50a3a_728 83c5a\system.dr awing.dll
ModLoad: 0ffd0000 0fff3000 C:\WINDOWS\Syst em32\rsaenh.dll
ModLoad: 30200000 30332000
c:\windows\asse mbly\gac\infrag istics.win.v3\3 .0.20033.16__7d d5c3163f2cd0cb\ i
nfragistics.win .v3.dll
ModLoad: 30100000 30128000
c:\windows\asse mbly\gac\infrag istics.shared.v 3\3.0.20033.16_ _7dd5c3163f2cd0 c
b\infragistics. shared.v3.dll
ModLoad: 31900000 3191e000
c:\windows\asse mbly\gac\infrag istics.win.misc .v3\3.0.20033.1 6__7dd5c3163f2c d
0cb\infragistic s.win.misc.v3.d ll
ModLoad: 70d00000 70ea1000
C:\WINDOWS\WinS xS\x86_Microsof t.Windows.GdiPl us_6595b64144cc f1df_1.0.10.0_x-
ww_712befd8\gdi plus.dll
ModLoad: 7bc10000 7bd5a000
c:\windows\asse mbly\gac\system .xml\1.0.5000.0 __b77a5c561934e 089\system.xml. d
ll
ModLoad: 7bd60000 7bf5e000
c:\windows\asse mbly\nativeimag es1_v1.1.4322\s ystem.xml\1.0.5 000.0__b77a5c56 1
934e089_86ba097 f\system.xml.dl l
ModLoad: 52b80000 52bce000
c:\windows\asse mbly\gac\micros oft.visualbasic \7.0.5000.0__b0 3f5f7f11d50a3a\ m
icrosoft.visual basic.dll
ModLoad: 77c00000 77c07000 C:\WINDOWS\syst em32\version.dl l
ModLoad: 30e00000 30ee4000
c:\windows\asse mbly\gac\infrag istics.win.ultr awintoolbars.v3 \3.0.20033.16__ 7
dd5c3163f2cd0cb \infragistics.w in.ultrawintool bars.v3.dll
ModLoad: 31300000 31374000
c:\windows\asse mbly\gac\infrag istics.win.ultr awinexplorerbar .v3\3.0.20033.1 6
__7dd5c3163f2cd 0cb\infragistic s.win.ultrawine xplorerbar.v3.d ll
ModLoad: 30d00000 30d2c000
c:\windows\asse mbly\gac\infrag istics.win.ultr awinstatusbar.v 3\3.0.20033.16_ _
7dd5c3163f2cd0c b\infragistics. win.ultrawinsta tusbar.v3.dll
ModLoad: 7a6e0000 7a81e000
c:\windows\asse mbly\gac\system .data\1.0.5000. 0__b77a5c561934 e089\system.dat a
..dll
ModLoad: 605d0000 605d8000 C:\WINDOWS\Syst em32\mslbui.dll
ModLoad: 77120000 771ab000 C:\WINDOWS\syst em32\oleaut32.d ll
ModLoad: 30500000 30632000
c:\windows\asse mbly\gac\infrag istics.win.ultr awingrid.v3\3.0 .20033.16__7dd5 c
3163f2cd0cb\inf ragistics.win.u ltrawingrid.v3. dll
ModLoad: 31400000 31436000
c:\windows\asse mbly\gac\infrag istics.win.ultr awintabcontrol. v3\3.0.20033.16 _
_7dd5c3163f2cd0 cb\infragistics .win.ultrawinta bcontrol.v3.dll
ModLoad: 30400000 30452000
c:\windows\asse mbly\gac\infrag istics.win.ultr awineditors.v3\ 3.0.20033.16__7 d
d5c3163f2cd0cb\ infragistics.wi n.ultrawinedito rs.v3.dll
ModLoad: 74e30000 74e9a000 C:\WINDOWS\Syst em32\RichEd20.D LL
ModLoad: 76fd0000 77048000 C:\WINDOWS\Syst em32\CLBCATQ.DL L
ModLoad: 77050000 77115000 C:\WINDOWS\Syst em32\COMRes.dll
ModLoad: 1f890000 1f8fc000 C:\Program Files\Common Files\System\OL E
DB\oledb32.dll
ModLoad: 1f670000 1f693000 C:\WINDOWS\Syst em32\MSDART.DLL
ModLoad: 763b0000 763f5000 C:\WINDOWS\syst em32\comdlg32.d ll
ModLoad: 1f900000 1f911000 C:\Program Files\Common Files\System\OL E
DB\OLEDB32R.DLL
ModLoad: 1b570000 1b5c4000 C:\WINDOWS\Syst em32\msjetoledb 40.dll
ModLoad: 1b000000 1b170000 C:\WINDOWS\Syst em32\msjet40.dl l
ModLoad: 1b5d0000 1b665000 C:\WINDOWS\Syst em32\mswstr10.d ll
ModLoad: 1b2c0000 1b2cd000 C:\WINDOWS\Syst em32\msjter40.d ll
ModLoad: 1b2d0000 1b2f6000 C:\WINDOWS\Syst em32\MSJINT40.D LL
ModLoad: 75730000 75850000 C:\WINDOWS\syst em32\comsvcs.dl l
ModLoad: 71c20000 71c6e000 C:\WINDOWS\syst em32\NETAPI32.d ll
ModLoad: 750f0000 75102000 C:\WINDOWS\syst em32\MTXCLU.DLL
ModLoad: 71ad0000 71ad8000 C:\WINDOWS\syst em32\WSOCK32.dl l
ModLoad: 71ab0000 71ac5000 C:\WINDOWS\syst em32\WS2_32.dll
ModLoad: 71aa0000 71aa8000 C:\WINDOWS\syst em32\WS2HELP.dl l
ModLoad: 75130000 75143000 C:\WINDOWS\syst em32\colbact.DL L
ModLoad: 76f90000 76fa0000 C:\WINDOWS\syst em32\Secur32.dl l
ModLoad: 55560000 55571000 C:\WINDOWS\Syst em32\CLUSAPI.DL L
ModLoad: 750b0000 750c1000 C:\WINDOWS\Syst em32\RESUTILS.D LL
ModLoad: 75a70000 75b15000 C:\WINDOWS\syst em32\USERENV.dl l
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b810000 1b84a000 C:\WINDOWS\Syst em32\msjtes40.d ll
ModLoad: 0f9a0000 0f9ab000 C:\WINDOWS\Syst em32\VBAJET32.D LL
ModLoad: 0f9c0000 0fa22000 C:\WINDOWS\Syst em32\expsrv.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 7ab90000 7ad32000
c:\windows\asse mbly\gac\system .design\1.0.500 0.0__b03f5f7f11 d50a3a\system.d e
sign.dll
ModLoad: 7ad40000 7aea8000
c:\windows\asse mbly\nativeimag es1_v1.1.4322\s ystem.design\1. 0.5000.0__b03f5 f
7f11d50a3a_2b9d 5922\system.des ign.dll
ModLoad: 79e40000 79e48000
c:\windows\asse mbly\gac\access ibility\1.0.500 0.0__b03f5f7f11 d50a3a\accessib i
lity.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\Syst em32\msrd3x40.d ll
(a90.884): CLR exception - code e0434f4d (first chance)
First chance exceptions are reported before any exception handling. This
exception may be expected and handled. eax=0012ef20 ebx=00000000
ecx=00147b90 edx=00000000 esi=00000000 edi=00000000
eip=77e73887 esp=0012ef1c ebp=0012ef70 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\syst em32\KERNEL32.d ll -
KERNEL32!RaiseE xception+0x50:
77e73887 5e pop esi
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ mscorwks.dll -

Nov 20 '05 #1
0 2059

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
7582
by: alecjames1 | last post by:
I have a form which the user must complete before closing. I have disabled the window x button and use my own exit button. When selected it checks to see if the user has completed the entries otherwise it cancels the close. However, the user can still right click on the task bar and close my application. Is there any way of preventing this. Thanks Alex
1
5824
by: Chris Bruce | last post by:
In my application I need a way to distiguish between the following events: 1. When a user closes an MDI child window. 2. When the user closes the MDI parent window which subsequently closes the MDI child window. My application does certain logic when the user actually closes the MDI child form by clicking the "X" in the upper right hand. My application, however, should not execute this logic if the user closes the MDI parent. I...
1
2204
by: **Developer** | last post by:
When I get a closing event in a MID Child form I don't know if the child form is closing or the main form is closing. Is there a way to tell? Thank
10
4029
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the application. What should happen, is that the main MDI form should close, taking the child forms with it. There is code to loop through the child forms, remove the controls on each of them, and then close the form, but this code should execute only...
1
1185
by: Support | last post by:
Hello: I have an application that I wish to update upon login via login script but since the application is in the start-up menu, I cannot override the exe, so, I wrote a function that iterates through all the instances of this application and kills the one instance that is not itself and then shuts itself down. The idea is that in a batch file , I could run <applicationname> shutdown which would create a new instance of the...
2
3023
by: Tom | last post by:
How is the best way to avoid validation when closing a window? For instance, I have a Windows Forms window which has a validation event for a text box. However, if one enters invalid data in then and then attempts to close the window (either via my custom 'Close' box or by clicking the close 'X' in the upper right window corner), the validation event still triggers and it tells the user that they have invalid data. Which of course means...
4
3008
by: Academic | last post by:
Does it make sense to put this If e.Cancel Then Exit Sub at the beginning of form closing events so if the user cancels the app's exiting in one Closing routine he will not be asked again by another when its form Closing routine is run? I guess what I'm asking is will that work. If one form sets e.cancelled to true will e.cancel be true when the next form receives a closing event?
14
3367
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using VS2005 and .net 2.0. I'm creating an application that has 3 forms. I want allow users to move forward and backward with the forms and retain the data users have entered. I thought I'll make the inactive forms invisible but this is creating a memory corruption problem when user close the form2 or form3 and not the formMain. My main form has a Next button which makes the main form invisible and starts a new form which I'll...
2
4234
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
I am (still) relatively new to Windows applications, most of my experience has been Web based, and I am confused about what exactly happens when the Main() method is called and how to manipulate forms opening & closing. An example of this issue is as follows. I have a logon form open as the first thing. The main functional form opens when a user has successfully logged on. From the main form, a user should be able to logout which will...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
Oralloy
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...
0
9950
tracyyun
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...
0
8972
agi2029
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...
0
6740
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();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.