From: Sam S. <sam...@gm...> - 2006-07-22 23:43:56
|
Does anyone have any suggestions for troubleshooting memory issues on win32? My heap seems to get corrupted before the app even starts.. my tiki_main has been stripped down to essentially: (tiki init stuff) GenericMenu *ts = new GenericMenu(); delete ts; Using the debug CRT, it'll report a heap corruption during the destructor, and using the release CRT it'll throw an exception during the constructor. This doesn't happen in any of my other Tiki projects, just DCSquares, and it only seems to happen on win32. I've tried recreating the project from scratch to see if I had set some weird build options, and even upgraded to Visual Studio 2005 (the free version is pretty sweet). I think I must have a global variable with a constructor or something that's screwing up the heap before tiki_main() gets run, but I can't figure it out. I'm almost at the point of discontinuing the win32 version of DCSquares and just sticking with Mac / Linux. Also, when tracing through the constructor with the VS debugger, assigning of values doesn't seem to do anything.. ex. m_usebgm = false; when the debugger steps over that, the value of this->m_usebgm should change from true (the default) to false, but it just stays true in the inspector. Even if I attempt to change the value manually in the inspector, it flips itself back to true again :-/ -Sam |