Jump to content
  • Advertisement

Archived

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

ToxicSoul

Pointers.. the source of all evil?

This topic is 6042 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 don''t get it... after adding some new mesh code all the pointers in my engine stoped working... I get no syntax errors while compling but when i run the program it crashes as soon as it reach a pointer call (->). With the access violation message... And if I comment out the line with the error the program just crashes on the next (->). ex. ATH_INFO->MAP_FILE_NAME = "Test.ath"; class) (LPSTR) Is this some global consperasy against c++ programmers or is there a simpeler solution? //Toxic Soul

Share this post


Link to post
Share on other sites
Advertisement
A crash when dereferencing a pointer often means that the pointer contains not what you would like it to contain . I would take a debugger and have a look at the pointer value.

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!