Skip to main content
GameDev.net gamedev.net
🔒 Locked

How to trace data member when debugging

Started by pluto_knight Aug 17, 2005 at 3:41 AM 0 replies 700+ views
Original Post
pluto_knight
pluto_knight
The data member has its scope, while it must be in the class scope. Unexpectedly, the data member lose its data or value out of the member functions' scope while debugging. I wonder the cause of it. Thanks in advance.
silverphyre673
silverphyre673
Ummm. From the information you gave, there isn't much anyone can tell you. You should post a snippet of the function that the data member resides in. My best guess would be that you have some memory leak or something, or that the variable is global and you change it somewhere else in the program, or that it is a pointer that you new, delete, and then try and access the value of. That's about it - the problem isn't your debugger. I'll bet you $10.
my siteGenius is 1% inspiration and 99% perspiration

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.