Jump to content
  • Advertisement

Archived

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

Tha_HoodRat

Debug vs Release ,

This topic is 6935 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

Something weird is going on . I create an instance of a class like so
  
CSprite *Mon = NULL;

Mon= new CSprite;
.......
//Later on I do something like

Mon->Animate();
Mon->DrawToViewPort(surface,mapx,mapy,mapWidth,mapHeight);
.......
 
It Draws to the viewport like I want it to , but it doesnt animate my sprite.I have checked the animation method it is being called just fine but no animation. Now get this , when I compile a release version , or when I declare the instance like this
CSprite Mon; 
everything works fine .WTF.

Share this post


Link to post
Share on other sites
Advertisement
Weird problem, probably down to some sort of pointer error or array overrun, something like that, but I reckon the actual problem is inside the Animate function somewhere.

Share this post


Link to post
Share on other sites
You''re probably doing something in debug that you aren''t doing in release - notorious are the ASSERT() macro calls - never put anything but a simple test in there.
It could also be that in debug something gets initialised to zero


#pragma DWIM // Do What I Mean!
~ Mad Keith ~
**I use Software Mode**

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.

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!