[Insight-users] Memory Leak in very simple ITK/MFC Code
jimmy
jimmy_lab at 163.com
Wed Jul 11 09:16:33 EDT 2007
Sorry for lack of Error messages.
The following messages show a part of large amount of memory leaks when I quit the application of Visual Studio under the Debug mode.
Detected memory leaks!
Dumping objects ->
{11559} normal block at 0x03AFC6C0, 72 bytes long.
Data: < > C0 C6 AF 03 C0 C6 AF 03 C0 C6 AF 03 CD CD CD CD
{11558} normal block at 0x03AF8198, 12 bytes long.
Data: < > CD CD CD CD C0 C6 AF 03 00 00 00 00
{11557} normal block at 0x03AFA038, 32 bytes long.
Data: <1.2.826.0.1.3680> 31 2E 32 2E 38 32 36 2E 30 2E 31 2E 33 36 38 30
{11556} normal block at 0x035E6DD8, 32 bytes long.
Data: <1.2.826.0.1.3680> 31 2E 32 2E 38 32 36 2E 30 2E 31 2E 33 36 38 30
{11555} normal block at 0x03AFC658, 40 bytes long.
Data: <h > 68 9F AF 03 F0 C5 AF 03 FE FF 0D E0 CD CD CD CD
{11554} normal block at 0x03AFC5F0, 40 bytes long.
Data: <X P > 58 C6 AF 03 88 C5 AF 03 50 00 04 00 CD CD CD CD
{11553} normal block at 0x03AFC588, 40 bytes long.
.....
.....
.....
The project had only loaded the ITKCommon.dll in my own dll project.
I had also tried _CrtSetBreakAlloc(<NO>) to trace position of memory alloc, however nothing happened.
But if I do not load the ITKCommon.dll, the project could quit smoothly.
Where is the problem?
Thanks in advance!
------------------
jimmy
2007-07-11
-------------------------------------------------------------
发件人:Luis Ibanez
发送日期:2007-07-10 23:14:12
收件人:jimmy
抄送:insight-users
主题:Re: [Insight-users] Memory Leak in very simple ITK/MFC Code
Hi Jimmy,
How is Visual Studio reporting the memory leaks to you ?
Please post to the mailing list the *EXACT* error messages
that you are getting from Visual Studio.
Thanks
Luis
----------------------------------
jimmy wrote:
> Hi, every one~
>
> My ITK version is 2.8.1.
> And I use MFC to load the ITK dlls to do some work of IMAGE IO.
> However, when the MFC application exits, the VS would detect a lot of memory leaks.
>
> If I do not load any dlls of ITK, it runs well without any memory leaks.
> But once I load ITKCommon.dll, memory leaks.
>
> Can anyone help me?
>
> Thank you all.
> --------------
> jimmy
> 2007-07-10
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list