malloc/free overriding in MFC programs

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

malloc/free overriding in MFC programs

Post by Anonymous »

It is quite well known that overridng standard implementation of malloc/free can be benefical in programming. I have written a short intro here:

malloc/free

I have had some success in overriding malloc/free in MFC programs, but this has been limited to a small program, in a larger one I get crashes in CString which I am struggling to understand :( in either case I run into problems with the linker reporting multiple definitions and have to force a link, which is not good.

I have been searching the net for ages to see if anyone knows anything about this subject, but so far with no luck.

jema

Archived topic from Iceteks, old topic ID:2423, old post ID:20482
wtd
Posts: 157
Joined: Sat Sep 25, 2004 7:21 pm

malloc/free overriding in MFC programs

Post by wtd »

I hope this isn't too naive, since I've never done any MFC programming, but if we're dealing with C++, why not use "new" and "delete"?

Archived topic from Iceteks, old topic ID:2423, old post ID:21985
Locked