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

Posts: 3,025
Name: Forrest Croce
Location: Seattle, WA
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?
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
When You Register, These Ads Go Away!
     
Old 03-09-2007, 04:04 PM Re: Exceptions only thrown when not debugging?
Ultra Talker

Posts: 478
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).
__________________
Free PHP Obfuscator
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 08:29 PM Re: Exceptions only thrown when not debugging?
Junior Talker

Posts: 2
I agree with TwistMyArm...I've only ever seen that type of problem when there is a race condition or timing issue.
__________________
Inspyder Software
Website Spell Check Software
Inspyder is offline
Reply With Quote
View Public Profile Visit Inspyder's homepage!
 
Old 03-23-2007, 02:14 AM Re: Exceptions only thrown when not debugging?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,025
Name: Forrest Croce
Location: Seattle, WA
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!
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 03-23-2007, 09:39 AM Re: Exceptions only thrown when not debugging?
Ultra Talker

Posts: 478
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.
__________________
Free PHP Obfuscator
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 03-24-2007, 05:02 AM Re: Exceptions only thrown when not debugging?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,025
Name: Forrest Croce
Location: Seattle, WA
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!
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to Exceptions only thrown when not debugging?
 

Thread Tools

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

vB 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.14130 seconds with 13 queries