|
Lets say you had the follow problem. It deals with memory leaks in a vendor supplied library. The vendor is no longer in the business but a mission critical legacy application leaks memory due to leaks in this vendor's library. I have the source for the legacy application which is built on top of the vendor's library. It depends on the library for communication across a network. The memory leaks have been traced to the library using a memory analysis tool ( i..e Purify ). In other words, I cannot fix the memory leaks in the application since I do not have access to the source code where the leaks are occurring. Question: Can you impellent garbage collection in C++? In other words, can you hook into new/delete or malloc/free and somehow manage your memory? Or are you stuck with the compiler implementations? This is a real problem I have. Management is unwilling to swap out the vendor library ( to costly ). However, the application faults after a few hours of use. I seem to recall something about implementing your own memory manager in C++. What I would like to do is implement garbage collection. The system runs under unix, HP-UX to be exact. So the solution must not be a windows only solution. Hey, if this was easy, we wouldn't need you! [ Send an empty e-mail to c++
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
for info ] [ about comp.lang.c++.moderated. First time posters: do this! ]
|