Advertisement Jump to content
Sign in to follow this  
dawidjoubert

un executed code causes crash

This topic is 4925 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 have stumbled upon an amazing thing... if (n < 0 || n > DimX * DimY-1) return; That line of code makes my program un-operable.. ie it stops responding before it even starts.. But the catch is the code isnt executed yet because i have in line watchers which stops me in the alogrithiam and then i do it step by step so the code is never executed but if i comment it out... The crash is fixed..! funny

Share this post


Link to post
Share on other sites
Advertisement
When you run it, are you using release or debug mode? Break points usually get ignored in release mode, so it might be getting executed after all.

Also, what does the code around that line look like? Sometimes a typo in one part of the code can screw up something later.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!