473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Crashes while exiting from c# application

GL
I am getting a crash while exiting from my application. Pl find the
Stack Trace of the crash:

System.Windows.Forms.Application.ThreadWindows.Thr eadWindows(System.Windows.Forms.Control
parent = <undefined value>, bool onlyWinForms = true) + 0x8c bytes
system.windows.forms.dll!ThreadContext.DisposeThre adWindows() + 0x54
bytes
system.windows.forms.dll!ThreadContext.Dispose() + 0xa1 bytes
system.windows.forms.dll!ThreadContext.RunMessageL oopInner(int reason =
0xffffffff, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x280 bytes
system.windows.forms.dll!ThreadContext.RunMessageL oop(int reason =
0xffffffff, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x50 bytes
system.windows.forms.dll!System.Windows.Forms.Appl ication.Run

I am not able to reproduce this crash in Debug mode. But this is only
coming in Release mode.

Could anyone help me to resolve this issue?

Thanks,
GL

NOTE: This application calls functions from our unmanaged dll very
frequently.

Nov 17 '05 #1
6 3658
Could you include also the exception type and exception message.

Nov 17 '05 #2
GL
hey .. I forgot to notedown the Exception Name. I think, it
ExecutionEngineException (not sure).

Sometime this application gives the following Error dialog
Caption: Setup Error
Message: Failed to load resources

-GL

Nov 17 '05 #3
GL
hey .. I forgot to notedown the Exception Name. I think, it
ExecutionEngineException (not sure).

Sometime this application gives the following Error dialog
Caption: Setup Error
Message: Failed to load resources

Nov 17 '05 #4
There is not enough information to say anything. Is your app
multithreaded? What kinds of unmanaged code does it call? What inside
the forms' closing events? Do you update UI from other thread without
marshaling to the owner thread by using Control.Invoke or
Control.BeginInvoke?

Nov 17 '05 #5
Hey GL,

"GL" <gl*****@gmail.com> schreef in bericht
news:11**********************@g14g2000cwa.googlegr oups.com...
hey .. I forgot to notedown the Exception Name. I think, it
ExecutionEngineException (not sure).

Sometime this application gives the following Error dialog
Caption: Setup Error
Message: Failed to load resources

-GL


It also helps to give us some versioning, like
- OS version + any service packs
- .NET Framwork version + any service packs
- Development environment version
- Language + version

Anyway, if it is an ExecutionEngineException it could indicate a bug in the
..NET framework. From the .NET docu for EEE:
<quote>
Execution engine errors are fatal errors that should never occur. Such
errors occur mainly when the execution engine has been corrupted or data is
missing. The system can throw this exception at any time. When possible, the
system throws an exception that provides more information than the
ExecutionEngineException exception.
</quote>

This leads me to my first question:
- 1/ Are you using .NET Framework 1.1?
And second
- 2/ Have you installed SP1 (service pack 1) for .NET Framework 1.1?

If you answer 1/ Yes, 2/ No, then I advise you to install SP1 for .NET
Framework 1.1 and see if that solves your problem. A lot of issues are
solved in that service pack, and most probably your issue too.

Get SP1 for .NET Framework 1.1 here:
http://www.microsoft.com/downloads/d...displaylang=en
Get more info on updates for .NET Framework here:
http://msdn.microsoft.com/netframewo...s/default.aspx

Tell us if that solved your problem.

Kind regards,
PS: I solved an obstructing ExecutionEngineException in my current dev.
project by upgrading to SP1 for .NET Framework 1.1
--
Tom Tempelaere.
Nov 17 '05 #6

"GL" <gl*****@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I am getting a crash while exiting from my application. Pl find the
Stack Trace of the crash:

System.Windows.Forms.Application.ThreadWindows.Thr eadWindows(System.Windows.Forms.Control
parent = <undefined value>, bool onlyWinForms = true) + 0x8c bytes
system.windows.forms.dll!ThreadContext.DisposeThre adWindows() + 0x54
bytes
system.windows.forms.dll!ThreadContext.Dispose() + 0xa1 bytes
system.windows.forms.dll!ThreadContext.RunMessageL oopInner(int reason =
0xffffffff, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x280 bytes
system.windows.forms.dll!ThreadContext.RunMessageL oop(int reason =
0xffffffff, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x50 bytes
system.windows.forms.dll!System.Windows.Forms.Appl ication.Run

I am not able to reproduce this crash in Debug mode. But this is only
coming in Release mode.

Could anyone help me to resolve this issue?

Thanks,
GL

NOTE: This application calls functions from our unmanaged dll very
frequently.


The crash is probably due to the call's into unmanaged code, check your
argument types and sizes very carefully, also check your calling
convention(s). Failures in both result in ExecutionEngineExceptions, because
you might overwrite CLR and/or GC structures.

Willy.
Nov 17 '05 #7

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

Similar topics

9
by: greeningster | last post by:
I have written an application in Visual C++ for a customer but it seems to crash randomly. Could anyone give me any help on how I could track this down ? Also, there appears there might be...
7
by: David Elliott | last post by:
I have created an application that will dynamically load other DLLs (plugins). The new plugin is a winform with an embedded IE Browser. I am wanting to have the form to run in its own thread....
8
by: Andrew Warren | last post by:
I'm trying to exit a Windows Forms application while in the form's constructor (after InitializeComponent() has been called) and am finding that calling Application.Exit () still leaves the form...
2
by: pnp | last post by:
Hi all, I'm working on a win app that uses a logon form to verify the user that logs in the program and then hides the first form and displays an MDI form where the user does his work. The app is...
2
by: tt | last post by:
Hi, ANy ideas on this? When I click the close button of a window in VB.net which method gets called? I used Applicaton.exit in some method of my appln. to exit the application but, it still...
1
by: kuhrty | last post by:
Hi, I am creating a multi-winform project. Everything has been working fine, except after I perform an update to the database and decide to Exit the winform after the update operation is...
6
by: Ant | last post by:
Hi all, I'm putting together a simple help module for my applications, using html files stored in the application directory somewhere. Basically it sets up a basic web server, and then uses the...
4
by: yinglcs | last post by:
Hi, I have a c++ application which crashes in this line (from the debugger, I have a segmentation fault here): void *object = dynamic_cast<void>(aObject); I have stepped thru the code in...
1
by: =?Utf-8?B?SmVycnk=?= | last post by:
I've created an assembly that, because of 3rd party controls, requires full trust to run. This is no problem when running from the local harddrive, but when the application is run from a network...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
jinu1996
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...
0
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...
0
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,...
0
isladogs
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...

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.