who called me?

Started by
2 comments, last by ekrax 19 years, 6 months ago
hello, ive got a problem with my win32 / opengl app. basically my killwindow function is being called and then failing to release hWnd and RC and such but there is a bunch of locations where it could be getting called from. before i start manually adding in break points and such is there anyway that i can find out what function called the killWindow?
Advertisement
debuggers show you stacks.
screenshot of the debugger in VS7.1, call stack is highligheted in red, should be very similar in VC6, VC2005, Codewarrior 7+, and possibly even DevC++.

ignore the black streaks, i had to edit out the project name.
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
wow i feel really stupid, it turns out the destructor was being called, which means the window was going out of scope ... duh i forgot to pass the window by refrence to the functions that required the window class. thanks for the help.

This topic is closed to new replies.

Advertisement