-- Keith
On Mar 5, 2005, at 11:33 AM, Richard Coutts wrote:
I'm using CW8.3 and need to keep better track of whether or not I'm over- or underwriting memory and possibly stomping on stuff I don't own. My app makes a lot of use of new and delete (and not so much of MemHandleNew and MemHandleFree for various reasons). So, I'd like to overload the operators so that when allocating memory a marker of some sort gets put at the end of the block (and possibly at the beginning) and then tested whether or not the marker has been written to when the memory is freed.
This is an area of coding that scare me a bit. I'm concerned my overloaded may end up causing more harm than good. Does anyone have some code they can share on how to do this? I've seen several examples on the web for variations of what I want to do for different compilers, but am not sure how well they translate.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
