[gdal-dev] Kernel resource leak -- Windows
Joaquim Luis
jluis at ualg.pt
Sun Sep 29 15:59:33 PDT 2013
Hi,
I can make a ticket with this but before, let me just report it here.
- Win 64 bits GDAL build
While playing with an Intel analysis tool to chase GMT memory leaks I
got two complains respecting GDAL.
P1: Error: Kernel resource leak
P1.55: Kernel resource leak: New
c:\programs\gdaltrunk\gdal\port\cpl_multiproc.cpp(626): Error X63:
Critical section creation site: Function CPLCreateMutex: Module
C:\progs_cygw\GMTdev\gmt5\trunk\WIN64\bin\gdal_w64.dll
Code snippet:
624 if( pcs )
625 {
>626 InitializeCriticalSectionAndSpinCount(pcs, 4000);
627 EnterCriticalSection(pcs);
628 }
The MS Help says that this can be solved with a call
to'FindCloseChangeNotification'
Also got another one but it ends in proj4 and I don't have a debug build
to investigate further.
P8: Error: Kernel resource leak
P8.36: Kernel resource leak: New
c:\programs\gdaltrunk\gdal\ogr\ogrct.cpp(481): Error X44:
Synchronization object handle creation site: Function OGRProj4CT: Module
C:\progs_cygw\GMTdev\gmt5\trunk\WIN64\bin\gdal_w64.dll
Code snippet:
479
480 if (pfn_pj_ctx_alloc != NULL)
>481 pjctx = pfn_pj_ctx_alloc();
482 else
483 pjctx = NULL;
proj_w64.dll!pj_init_plus_ctx
proj_w64.dll!pj_init_plus_ctx
proj_w64.dll!pj_init_plus_ctx
gdal_w64.dll!OGRProj4CT - ogrct.cpp:481
gdal_w64.dll!OGRCreateCoordinateTransformation - ogrct.cpp:408
gdal_w64.dll!OCTNewCoordinateTransformation - ogrct.cpp:451
gmt_w64.dll!ReportCorner - gmt_gdalread.c:984
gmt_w64.dll!populate_metadata - gmt_gdalread.c:850
gmt_w64.dll!GMT_gdalread - gmt_gdalread.c:184
Joaquim
More information about the gdal-dev
mailing list