By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,457 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,457 IT Pros & Developers. It's quick & easy.

"Start without debugging" troubles

P: n/a
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
Mar 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Nick Ward wrote:
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#)
------------------------------------------------------------------------
Mar 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.