Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

stodge

User breakpoint at code.... - help please!

This topic is 5621 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was testing my demo yesterday when my PC crashed (as it has a tendancy to do). When I rebooted and went back to testing/debugging my code I started getting a "User breakpoint" appearing. For some reason when I press F12 I get the user breakpoint (int 3), and only if I run my demo from inside Visual Studio using the F5 key (Go?). The weird thing is that F12 isn''t used by anything in my demo. I''ve tried using the debugger, but the breakpoint occurs before my program (using SDL) even registers the keypress! Am I right in thinking that the stack or heap is getting corrupted? Any suggestions for how to track this down? Thanks

Share this post


Link to post
Share on other sites
Advertisement
You have an NT kernel based OS (i.e. Windows NT, Windows 2000 or Windows XP).

AFAIK it''s an NT kernel specific thing - when the currently active process is a debugger (i.e. like MSVC when you press F5 to debug and run the current project), and you press F12, it causes a user breakpoint.

It''s intended behaviour, nothing to worry about - just don''t try using F12 for your own stuff and debugging at the same time.

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
heh, yes, that''s a feature of the debugger! (VC++ 6.0, dunno about .NET)... unfortunately i can''t remember if or how to turn it off in the MSVC Settings... i almost threw my monitor out of the window after 1 hour of useless debugging. i just switched to another key then.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!