Handling abnormal program termination
Posted on 2001-09-03
This is my problem, I have written a COM DLL which creates a very complex link list. I have handled all errors inside the COM DLL and i also clear the Heap asap.
The average number of nodes in the link list will be about 10,000 to 15,000 nodes.
The program which uses this COM dll may not handle the exceptions (Client can be in Visual Basic, C++ or Visual C++), Now if the program that uses this COM dll terminates abnormally then how can i release all the memory allocated by the COM dll in the heap?
Is there any way i could handle this, because since it creates about 10,000 to 15,000 nodes, the memory usage is bit high and i want to free the heap even in case of abnormal termination.
Thank you in advance