Hi

Under what circumstances do this dialog box apper in a .Net 2.0 application?
I have never noticed this dialog box before I installed the KB924895 fix for
.Net framework 2.0.

Re: [App-name] has encountered a problem and needs to close. We... by Michael

Michael
Wed Jan 10 02:39:18 CST 2007

Hello Daniel,

Which behavior leads to this dialog box?
Do u have the latest updates installed?

DC> Under what circumstances do this dialog box apper in a .Net 2.0
DC> application? I have never noticed this dialog box before I installed
DC> the KB924895 fix for .Net framework 2.0.

---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangel



Re: [App-name] has encountered a problem and needs to close. We... by Paul

Paul
Wed Jan 10 06:39:18 CST 2007

Daniel,

This is at least the 2nd time you've asked this question - someone tried
helping you the last time you asked and you've not bothered to reply to
them. Basically I'd say that something in your code (again, I'm guessing
that this is a program that you've written) is doing something unexpected
and quitting. You need to run the program in the debugger and find out
where, at which point people will be able to help you further.

Regards,

- Paul.

"Daniel Carlson" <DanielCarlson@discussions.microsoft.com> wrote in message
news:07047B6A-B0E7-4949-AE42-7284B6132BA8@microsoft.com...
> Hi
>
> Under what circumstances do this dialog box apper in a .Net 2.0
> application?
> I have never noticed this dialog box before I installed the KB924895 fix
> for
> .Net framework 2.0.



Re: [App-name] has encountered a problem and needs to close. We... by Ashot

Ashot
Wed Jan 10 12:18:06 CST 2007

What does the debugger say?

It's very easy to crach an application - .Net or no .Net.

Here's how:

int divisor = 0;

int result = 5 / divisor;


Voila, it'll crash.

Ashot

"Daniel Carlson" <DanielCarlson@discussions.microsoft.com> wrote in message
news:07047B6A-B0E7-4949-AE42-7284B6132BA8@microsoft.com...
> Hi
>
> Under what circumstances do this dialog box apper in a .Net 2.0
> application?
> I have never noticed this dialog box before I installed the KB924895 fix
> for
> .Net framework 2.0.



Re: [App-name] has encountered a problem and needs to close. We... by Chris

Chris
Wed Jan 10 13:05:09 CST 2007

"Daniel Carlson" <DanielCarlson@discussions.microsoft.com> wrote
> Under what circumstances do this dialog box apper in a .Net 2.0
> application?
> I have never noticed this dialog box before I installed the KB924895 fix
> for
> .Net framework 2.0.

This typically means you've got an unhandled exception. It's meant that
since the earliest days of .Net development.

Put an event on the AppDomain.UnhandledException and see if it hits.
Alternativly, attach a debugger and see the exception.

This is actually the behavior you WANT to have happen, so that you can track
things down.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, MVP C#
http://www.coversant.net/blogs/cmullins



Re: [App-name] has encountered a problem and needs to close. We... by DanielCarlson

DanielCarlson
Thu Jan 11 01:45:01 CST 2007

"Chris Mullins [MVP]" wrote:

> "Daniel Carlson" <DanielCarlson@discussions.microsoft.com> wrote
> > Under what circumstances do this dialog box apper in a .Net 2.0
> > application?
> > I have never noticed this dialog box before I installed the KB924895 fix
> > for
> > .Net framework 2.0.
>
> This typically means you've got an unhandled exception. It's meant that
> since the earliest days of .Net development.
>
> Put an event on the AppDomain.UnhandledException and see if it hits.
> Alternativly, attach a debugger and see the exception.
>
> This is actually the behavior you WANT to have happen, so that you can track
> things down.
>

Hello Chris!

I have an event handler connected to AppDomain.UnhandledException but this
is never trigged. Is this a guarantee that no unhandled exception is thrown?

Another thing: I have built two diferent test applications, one in Fw1.1 and
one in Fw2.0, that throws an unhandled exception. the one bulit in 1.1 does
only show a dialog saying: "An unhandled exception has occ..." and the one
bulit in 2.0 generates the dialog this thread is all about.

The difference between the dialog that my test application generates is that
this one has generated an "error report". Mine does not...!

Thanks for you reply!

Regards Daniel Carlson

Re: [App-name] has encountered a problem and needs to close. We... by DanielCarlson

DanielCarlson
Thu Jan 11 01:46:01 CST 2007

Hello Ashot

Please se my reply to Chris Mullins below

Regards Daniel

"Ashot Geodakov" wrote:

> What does the debugger say?
>
> It's very easy to crach an application - .Net or no .Net.
>
> Here's how:
>
> int divisor = 0;
>
> int result = 5 / divisor;
>
>
> Voila, it'll crash.
>
> Ashot
>
> "Daniel Carlson" <DanielCarlson@discussions.microsoft.com> wrote in message
> news:07047B6A-B0E7-4949-AE42-7284B6132BA8@microsoft.com...
> > Hi
> >
> > Under what circumstances do this dialog box apper in a .Net 2.0
> > application?
> > I have never noticed this dialog box before I installed the KB924895 fix
> > for
> > .Net framework 2.0.
>
>
>

Re: [App-name] has encountered a problem and needs to close. We... by Chris

Chris
Thu Jan 11 11:27:04 CST 2007

That's not the exception you wanted to see.

Along with "Out of Memory", "Thread Abort" and "Stack Overflow" exceptions,
that's one that you really can't do much about.

I would suggest using ADPlus to capture the exception, and then poke at the
resulting dump file. That should tell you quite a bit more about what's
going on. Information on how to do (most) of this can be found at:
http://www.coversant.net/Default.aspx?tabid=88&EntryID=28

I added the "debugging" group to this post, as that's where it's going to
end up.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, MVP C#
http://www.coversant.net/blogs/cmullins

"Daniel Carlson" <DanielCarlson@discussions.microsoft.com> wrote in message
news:AB23BBE7-934A-4673-9A38-E14098358D18@microsoft.com...
> Finally I have recieved some data in the Event Viewer!!! Everytime the
> application crashes the following two items appears in the Application
> Log:
>
> Source: .Net Runtime
> Time: 17:35:47
> Type: .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error
> (7A05E2B3) (80131506)
>
> Source: .Net Runtime 2.0 Error Reporting
> Time: 1735:49
> Type: Faulting application mec.exe, version 2.0.0.21154, stamp 455c4134,
> faulting module mscorwks.dll, version 2.0.50727.42, stamp 4333e7ec, debug?
> 0,
> fault address 0x000a163b.
>
> (Where Mec.exe is my application)
>
> I hope anyone can help me further.
>
> Regards Daniel Carlson
>
>