MFC sample memory leak problem.

I have OCC 6.3.0 and visual studio 2008.(at window xp pro) after running OCC MFC sample(debug version), when finished it, The OCC occurs memory leak. I worry that the momory leak will be increased under running the OCC program.
I have two questions.

1. Is there any problem such as the memory leak increase while running the OCC porgram(release or debug version).
2. How to solve this problem under the OCC debug version. Is there method to solve it such as visual c++ compile option change, etc...

mac999's picture

I included the memory leak output below.
(In the result of tracing this problem in the OCC header file, Some header files such as Standard_ErrorHandler, BRepPriAPI_Make...h occurs this problem in debug version.)

Dumping objects ->
{24125} normal block at 0x05B01078, 1244 bytes long.
Data: < D > 00 00 00 00 44 A8 A5 00 00 00 00 00 FF FF FF FF
{24093} normal block at 0x05A0F398, 444 bytes long.
Data: < ? ?> 00 00 80 3F 00 00 00 00 00 00 00 80 00 00 80 3F
{24088} normal block at 0x05A21ED8, 1920 bytes long.
Data: < Yn ? > 00 00 00 00 DA 59 6E A7 00 00 80 3F 00 00 00 00
{24083} normal block at 0x05A0EF68, 1008 bytes long.
Data: < , ' > 00 00 80 BF ED 2C 97 27 00 00 00 00 00 00 80 BF
{24078} normal block at 0x05A100E0, 456 bytes long.

JuryS's picture

This problem not only with MFC. Also with gcc. There is no platform problem. I'm try to find where the memory leak in my application last six month. It's very difficult.