Overloading new & delete 
Author Message
 Overloading new & delete

I am trying overload the global new & delete operators to due memory
checking similar to what the MFC does.  The overloaded new works when the
code for the new operator is in a static library that is single or
multi-thread and using the static C run-time library. The overloaded delete
generates a linker error stating duplicate function in the run time lib.
Neither operator will link when using the DLL run-time.

The MFC does this, so I know it can be done, but how?

Also, how can I put this code into a DLL so that it will work?

Thanks in advance.
David
--
------------------------------------------
David Buksbaum

------------------------------------------



Fri, 31 Dec 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. overloading the new and delete operator

2. problems overloading global new and delete (no MFC)

3. Overloading new/delete ???

4. Overloading new[] and delete[]

5. overloading new/delete

6. overloading new, delete

7. win32 memory management - new and delete operator overloading

8. Overloading new operator (MI & MFC)

9. error when using delete & new in class

10. new & delete

11. new&delete in different threads

12. new&delete - DLL with own heap...

 

 
Powered by phpBB® Forum Software