[heap problem] memory check error ...
Posted on 2007-08-12
i have a heap memory problem... something like 'memory check error at 0x02A0EEA4 = 0xFF, should be 0xFD.' our code base is huge so i can't really post it. i have narrowed down where the memory becomes corrupted [maybe / i think] but this makes everything even more confusing. take a look at the following to see what i mean.
_ASSERTE(_CrtCheckMemory()); // no assert!
m_currentEditRow = -1; // declared as a private class variable in the header
_ASSERTE(_CrtCheckMemory()); // asserts here!
now for the really interesting part: the above is declared in the header below...
class widget public: another_widget
// other member declarations
if the declaration for m_currentEditRow stays where it is the assert happenes above, but if i start moving the declaration around the assert happens erratically.\
any help would be greatly appreciated, as i am feeling quite lost.