Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
Exceptions only thrown when not debugging?
Old 03-06-2007, 03:11 AM Exceptions only thrown when not debugging?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Does anybody have any thoughts or insight into why an exception might be thrown at runtime, either stand-alone or with the Visual Studio debugger, but when you step through the code line-by-line with the debugger, everything works the way it's supposed to?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
 
Register now for full access!
Old 03-09-2007, 05:04 PM Re: Exceptions only thrown when not debugging?
Ultra Talker

Posts: 483
Trades: 0
No idea without the code, though I would suggest that it may be a timing issue (maybe to do with another thread or some asynchronous call).
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 09:29 PM Re: Exceptions only thrown when not debugging?
Junior Talker

Posts: 2
Trades: 0
I agree with TwistMyArm...I've only ever seen that type of problem when there is a race condition or timing issue.
__________________
Inspyder Software

Please login or register to view this content. Registration is FREE
Inspyder is offline
Reply With Quote
View Public Profile Visit Inspyder's homepage!
 
Old 03-23-2007, 03:14 AM Re: Exceptions only thrown when not debugging?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
That's what it sounds like, huh? I'm locking all the shared objects when I should be ... except, apparently, in one place that I don't know about. But it definitely sounds like threading issues, right?

The code is a few thousand lines, so posting it here would just bore everybody, but thanks for the sentiment!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 03-23-2007, 10:39 AM Re: Exceptions only thrown when not debugging?
Ultra Talker

Posts: 483
Trades: 0
There is one other thing that I can think of: when running the program (not debugging it), is it the same build as the one you are stepping through? That is to say, your debug one is obviously 'Debug', but when you're testing it without stepping through it are you still using the 'Debug' build (as opposed to the 'Release' one)?

You probably are, but I just wanted to put this out there: there's a number of times where I've had problems with the 'Release' build but not the 'Debug' one... some things like bad memory access and the like that 'Debug' apparently is OK with.
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 03-24-2007, 06:02 AM Re: Exceptions only thrown when not debugging?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Thanks for the tips; I've been doing some reading since you mentioned this, and it's 2 am, so my IQ has dropped by 30 points, but it looks like there are some aggressive optimizations in release mode I might need to turn off. Maybe I'm on the wrong track, but I need to look into this stuff when I'm more alert.

Thanks!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to Exceptions only thrown when not debugging?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22804 seconds with 12 queries