views:

36

answers:

2

Hi all.

I have a problem. My program crashes on start up without any stack trace. The only thing I can see is "Send Report To Microsoft". This happens only on one PC.

Can you explain me Why some exceptions are with stack trace and some are without?

Thanks.

+1  A: 

No stack traces are shown for unhanded exceptions by default.

If a suitably installed debugger is configured (e.g. Visual Studio installed normally) then you will be prompted to start a debugger session when an program crashes, otherwise the "send report" option is displayed.

Anything else is in the implementation of the program.

I would suggest looking at something like procdump (Sysinternals) to capture a memory dump from which VS can give you a stack trace (and more details) to help diagnosing the problem.

Richard
A: 

One possibility is that the application is crashing before loading the .Net framework and executing your Main() function.

I'd suggest either checking the event viewer, or running it under a debugger such as windbg.

Miki Watts