Jump to content
  • Advertisement
Sign in to follow this  

GNU compiler bug for Dev cpp.

This topic is 5174 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’ve ran into a very strange bug while developing my in-house CAD program SpecialED. In the program I draw a grid for window in the spcific view like this: Void DrawGrid(HWND hWnd, VIEWPORT* View, BYTE cPlane){ FVERTEX3D Min,Max; Clear window Validate Client area blah blah Switch(cPlane){ case PLANE_XZ: Min = Vew.GetMin(); // simply inline return &Min Max = Vew.GetMin(); // simply inline return &Min At this point Min And Max are fine and uncorupted Break; case PLANE_XY: Min = Vew.GetMin(); // simply inline return &Min Max = Vew.GetMin(); // simply inline return &Min At this Min And Max contain corrupted data? break; each other case statemt the data was progressively more corrupted . … } // Switch }; The Problem was in the construtor of the SpecalEdApp class SPECALEDAPP(){ FrontViewPort.SetSize(100,100,0); FrontViewPort.SetCenter(0,0,0) … same for the others … the lines above curropted everything in the constructor. } void SetCenter(float x , float y, float z){ Center.x = x; Center.y = y; Center.z = z;} void SetSize(float x , float y, float z){ Min.x = x Min.y = y Min.z = z Min -= Center; Max.x = x Max.y = y Max.z = z Min += Center; } I so put the definitions in the implimation module and everything worked fine. Very strange anyone else have this sort of problem?

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.

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!