"Start without debugging" troubles

N

Nick Ward

Hey,
I'm writing an app using C# visual studio express edition. When i run it in
debug mode it runs fine and works perfectly, but when i run it without
debugging (or from explorer) it crashes and comes up with a "send error
report" dialog. Does anyone know why this happens, or how to find out why it
is happening? Obviously if it was running in debug mode it would break and
show me where the error is but since it isn't, how do i find out?
Thanks in advance
Nick
 
F

Frans Bouma [C# MVP]

Nick said:
Hey,
I'm writing an app using C# visual studio express edition. When i run
it in debug mode it runs fine and works perfectly, but when i run it
without debugging (or from explorer) it crashes and comes up with a
"send error report" dialog. Does anyone know why this happens, or how
to find out why it is happening? Obviously if it was running in debug
mode it would break and show me where the error is but since it
isn't, how do i find out? Thanks in advance
Nick

Do you reference string variables without initializing them? Like:

private string _foo
//...

Console.WriteLine(_foo);

This might lead to errors as in debug builds they're null. The best
way to do this is to initialize your strings with string.Empty.

Also, your message is a bit vague: does vs.net crash or do you get an
exception or does your app crash with a gpf (as that's what seems to be
happening as you get a send error report message)

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top