Skip to main content
gamedev.net
🔒 Locked

Untouchable Error.

Started by silvermace 4 replies 700+ views
Original Post
silvermace
silvermace
I have an error, which i cant seem to find. 1. It ONLY occurs in Debug mode (the Exeption is raised by the debugger - MSVC) 2. I Can''t Find out what lines its on. I add a breakpoint on the line i managed to narrow down, then just when you think youve found it, you try the next line to be sure, but its not crashing on the previous line?! ie. it moves to the line after where break point is!! it says First Chance Exeption at Address 0x000005 (Or similar) got ANY ideas ?? its really pissing me off.
Arrow Mk84
Arrow Mk84
I had one like that (0xc000005), turned out to be an HWND assignment from CreateWindow. The way I found it was to put a breakpoint at the beginning of my program and trace through the whole thing, looking at the debugger window the whole time. You should probably place your breakpoint on the function that calls that line (and step into it) or few lines before suspect line (MSVC is bitchy about breakpoints). I''d suggest paying close attention to any = statements are anything else that messes with memory locations.

Its not much, but its the best I can offer. Hope it helps.
daerid
daerid
I''ve only gotten first-chance exceptions when I hit ctrl+c while debugging.
daerid@gmail.com
silvermace
silvermace
its kinda 5000 lines long
(its a highly compact script engine - EVERYTHING is linked TO EVERYTHING)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.