Hi Marti,

I have problem in my application which uses lcms engine with memory leak.

If I put   _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
  // it waits to process end and then dumps leaks
at the beginning of main, it dumps leak at normal block at 0x079D8CE0, 8192
bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00

Call Stack looks like this:

 block adress = 0x079d8cc0 size = 8192 (allocheap)
 msvcr80d.dll!_heap_alloc_dbg()
 msvcr80d.dll!_nh_malloc_dbg()
 msvcr80d.dll!malloc()
 PCVTest_x32_s_d.exe!_cmsfilelength()
 PCVTest_x32_s_d.exe!__cmsMalloc()
 PCVTest_x32_s_d.exe!_cmsfilelength()
 PCVTest_x32_s_d.exe!__cmsMallocZero()
 PCVTest_x32_s_d.exe!_cmsfilelength()
 PCVTest_x32_s_d.exe!__cmsCalloc()
 PCVTest_x32_s_d.exe!_cmsBuildTabulatedToneCurve16()
 PCVTest_x32_s_d.exe!_cmsBuildSegmentedToneCurve()
 PCVTest_x32_s_d.exe!_cmsBuildParametricToneCurve()
 PCVTest_x32_s_d.exe!_cmsBuildGamma()
 PCVTest_x32_s_d.exe!Investintech::PDL::DAL::`anonymous
namespace'::CreateProfile_AppleRGB()
 PCVTest_x32_s_d.exe!Investintech::PDL::DAL::Colors::Colors()
 PCVTest_x32_s_d.exe!Investintech::PDL::DAL::Core::Core()
 PCVTest_x32_s_d.exe!Investintech::PCV::PDF::Document::Document()
 PCVTest_x32_s_d.exe!wmain$omp$1()
 vcompd.dll!_vcomp::ParallelRegion::HandlerThreadFunc()
 vcompd.dll!_vcomp::ParallelRegion::HandlerThreadFunc()
 vcompd.dll!_InvokeThreadTeam@12()
 vcompd.dll!__vcomp_fork()
 PCVTest_x32_s_d.exe!wmain()
 PCVTest_x32_s_d.exe!__tmainCRTStartup()
 PCVTest_x32_s_d.exe!wmainCRTStartup()
 kernel32.dll!7683339a()
 [Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll]
 ntdll.dll!77c39ef2()
 ntdll.dll!77c39ec5()

So, the memory leak of 8192 bytes is at the same block which lcms uses.

I have to mention that all profiles that I've made are properly closed(
I've double checked them ),and all transformations too.

I'm using lcms 2.1.
Are there known memory issues that are fixed in lcms 2.3?Any advice?


Thanks,

Marko
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to