Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / July 2004

Tip: Looking for answers? Try searching our database.

Unhandled Exception

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
decrypted - 28 Oct 2003 01:00 GMT
Hi all...
What exactly are those "Application has generated an exception that could
not be handled" from the Common Language Debugging Services error and hoiw
exactly can I debug them? I have 3 clients of 400 running into these
randomly throughought thier day and can not gain any insight into the
problem.

Any ideas/links whatever would be greatly appreciated.

-dec
Peter Koen - 28 Oct 2003 01:10 GMT
> Hi all...
>  What exactly are those "Application has generated an exception that
[quoted text clipped - 7 lines]
>
> -dec

If you really want some help then plz be more specific.
Post the exact exception message and a description of the application that
is producing it.

Signature

------ooo---OOO---ooo------

Peter Koen - www.kema.at
MCAD CAI/RS CASE/RS IAT

------ooo---OOO---ooo------

decrypted - 28 Oct 2003 01:42 GMT
Thats funny...I did post the exact error message - its a modal that reads
"Application has generated an exception that could not be handled." I catch
exceptions on the main UI thread, so this is a serious CLR error (it crashes
the client out completely).

The app itself is an enterprise management application with approx 170
windows.

-dec

> > Hi all...
> >  What exactly are those "Application has generated an exception that
[quoted text clipped - 11 lines]
> Post the exact exception message and a description of the application that
> is producing it.
Peter Koen - 28 Oct 2003 01:51 GMT
> Thats funny...I did post the exact error message - its a modal that
> reads "Application has generated an exception that could not be
[quoted text clipped - 3 lines]
> The app itself is an enterprise management application with approx 170
> windows.

Uhhh... That sounds heavy...
have you tried running performance monitor and monitoring memory, cpu and
various clr/jit features when this error happens?

Signature

------ooo---OOO---ooo------

Peter Koen - www.kema.at
MCAD CAI/RS CASE/RS IAT

------ooo---OOO---ooo------

decrypted - 29 Oct 2003 19:14 GMT
Yes i tried my best. The main problem is the errors happen at random and
random windows and though only a few machines, since the error is not
catchable, all the data becomes speculative. Its hard to spend a hole day
with someone watching thier stats until the thing crashes =P. The data I
have gotten back appears to be perfectly fine...i ran another machine
through the same thing, consuming larger amounts of memory, letting threads
run up and down...loaded more windows and accessed the database more times
without a hitch. The funny thing is, this machine was significantly
'crapier' than the machine having the problems. I didn't check the video
card/drivers and I am begining to think the GUI API in win32api is to blame
(or simply the crap vid card that the machine has).

cheers
dec

> > Thats funny...I did post the exact error message - its a modal that
> > reads "Application has generated an exception that could not be
[quoted text clipped - 7 lines]
> have you tried running performance monitor and monitoring memory, cpu and
> various clr/jit features when this error happens?
Peter Koen - 29 Oct 2003 22:49 GMT
> Yes i tried my best. The main problem is the errors happen at random
> and random windows and though only a few machines, since the error is
[quoted text clipped - 8 lines]
> think the GUI API in win32api is to blame (or simply the crap vid card
> that the machine has).

This sounds more like a hardware / device driver problem than a .nET
Framework problem.

Try to make some stress tests on the machines where the errors happen.

Signature

------ooo---OOO---ooo------

Peter Koen - www.kema.at
MCAD CAI/RS CASE/RS IAT

------ooo---OOO---ooo------

Sebastien Lambla - 11 Nov 2003 12:12 GMT
With that many windows, i wouldn't be surprised for that to be a non creator
thread access on a gui method. Are you making sure you always call Invoke()
?

Signature

Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/

> > Thats funny...I did post the exact error message - its a modal that
> > reads "Application has generated an exception that could not be
[quoted text clipped - 7 lines]
> have you tried running performance monitor and monitoring memory, cpu and
> various clr/jit features when this error happens?
decrypted - 21 Nov 2003 16:00 GMT
its not a worker thread, i verified this some time ago.

> With that many windows, i wouldn't be surprised for that to be a non creator
> thread access on a gui method. Are you making sure you always call Invoke()
[quoted text clipped - 11 lines]
> > have you tried running performance monitor and monitoring memory, cpu and
> > various clr/jit features when this error happens?
Sebastien Lambla - 21 Nov 2003 16:44 GMT
The exception that you get is obviously not catched by your code. You can do
the following:

At the start of your application, register to the UnhandledException event
on the AppDomain.CurrentDomain, log the exception on disk and send it by
mail directly to you whenever the app crash, and inform the user to please
restart the application and be nice with it.

Then you can analyze the log itself.

Signature

Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/

> its not a worker thread, i verified this some time ago.
>
[quoted text clipped - 16 lines]
> and
> > > various clr/jit features when this error happens?
decrypted - 02 Dec 2003 17:23 GMT
Um...
1. I already have error tracking and auto feedback using remoting in my
application, and handling thhe UnhandledException event all all spawned
threads is one of the methods I use to cultivate these errors.
2. You kind of contradict yourself...it is an exception than can not be
handled, UnhandledException is raised when you don't have a try-catch
block....an exception is still thrown. The primary problem here is NO
exception is thrown, it just crashes....it is an un-cachable excpetion, not
an unhandled one.

-dec

> The exception that you get is obviously not catched by your code. You can do
> the following:
[quoted text clipped - 27 lines]
> > and
> > > > various clr/jit features when this error happens?
Sebastien Lambla - 11 Dec 2003 12:54 GMT
Hum,

first i'm trying to help out by throwing ideas at you. You're not paying me
for that, so I would appreciate a bit more respect in the tone of your
answers.

That said, if you can't catch the exception and it's making your application
die, and you can't catch it at the AppDomain level either (and frankly,
catching an exception and report it through a remoting channel doesn't sound
like a very good idea to me, as .net remoting itself can throw, etc), then
the problem does come from a lower level. Unless you do some stress test of
your app, I really don't know what the problem could be. I would check which
OS and the number of Handles created by your app, as this could potentially
crash the exe straight away.
As for contradicting myself, my point was that an uncatched exception
sometimes bypass what you think is the call chain, when the chain might be
different. Common case is a library swallowing the exception and calling a
framework to log it, and the framework itself throws for an unknown reason.
These things happens.

Signature

Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/

> Um...
> 1. I already have error tracking and auto feedback using remoting in my
[quoted text clipped - 45 lines]
> > > and
> > > > > various clr/jit features when this error happens?
Wayles Harrison - 16 Jul 2004 00:31 GMT
Unhandled Exception

  Error number 0x80070725
  Description: Incompatible verson of the RPC stub.

   Setup will now terminate.

I am trying to install "Battlefield 1942" from EA Games.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.