memory leaks with a simple open/close ?!

Hello,

I am pretty new to HDF5. I need to use the library for a current project. I
am using Visual Studio 2005 and HDF in version 1.6.4. To get in touch with
HDF5 I created a simple MFC project and added these few lines to my code:

     string strResFile = "d:\\temp\\test.hdf";

     hid_t h5File;

     h5File = H5Fcreate( strResFile.c_str(), H5F_ACC_TRUNC, H5P_DEFAULT,
H5P_DEFAULT );

     H5Fclose( h5File );

After closing the application in debug mode the output shows the following:

Detected memory leaks!

Dumping objects ->

{1360} normal block at 0x0101A3A8, 16 bytes long.

···

Data: <@ ` > 40 07 00 00 D8 C8 03 01 60 D0 03 01 00 00 00 00

{1358} normal block at 0x0103BB08, 16 bytes long.

Data: < ` > 84 00 00 00 60 AB 03 01 00 00 00 00 00 00 00 00

{1357} normal block at 0x0103B3C0, 16 bytes long.

Data: < > 20 02 00 00 B0 A8 03 01 00 00 00 00 00 00 00 00

{1356} normal block at 0x0103AFE0, 16 bytes long.

.

.

.

many many memory leaks later

.

.

.

{413} normal block at 0x00FFBF48, 32 bytes long.

Data: < @ > 01 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00

Object dump complete.

I am pretty sure that I didn't do anything wrong with the coding itself. So
does anyone have an answer or solution on that? Any suggestion is
appreciated. Thank you!

Greetings from Germany,

Tom Kollmann

I tested now with Visual Studio 2003 with the result that I dont get these
memory leaks with the same code and the same compiler/linker settings.

Is there a known bug with Visual Studio 2005?

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/memory-leaks-with-a-simple-open-close-tp4025625p4025626.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Another update: If I set MFC beeing used in a static library (instead of a
dll), then the memory leaks are gone. This is for Visual Studio 2005 only.
Very strange.

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/memory-leaks-with-a-simple-open-close-tp4025625p4025627.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Hi,

  while I'm not sure if it applies here, but there has been the situation that when using MSVC
it is important that all libraries are compiled with the same compilation flags with respect
to Debug/Release, because there are different versions of malloc(),free() for the Debug
and Release runtime libraries. Thus if a library is compiled in Debug mode but linked
with a library that has been compiled in Release mode, then both will call a different
version of malloc(), and if one library allocates memory, the other one free()s it, then
it will lead to memory leaks.

It might be related to this article:

http://msdn.microsoft.com/en-us/library/2f7sy2e9(v=vs.80).aspx

I haven't used MSVC for a long time, but remember I had problems with that,
maybe it's the same for you.

         Werner

···

On Tue, 20 Nov 2012 03:00:32 -0700, saracaeus <saracaeus@gmx.de> wrote:

Another update: If I set MFC beeing used in a static library (instead of a
dll), then the memory leaks are gone. This is for Visual Studio 2005 only.
Very strange.

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/memory-leaks-with-a-simple-open-close-tp4025625p4025627.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
___________________________________________________________________________
Dr. Werner Benger Visualization Research
Laboratory for Creative Arts and Technology (LCAT)
Center for Computation & Technology at Louisiana State University (CCT/LSU)
211 Johnston Hall, Baton Rouge, Louisiana 70803
Tel.: +1 225 578 4809 Fax.: +1 225 578-5362

There are 2 HDF5 libraries: hdf5-1.6.4_d.lib (debug version) and
hdf5-1.6.4.lib (release version). I use the debug version for my sample
program which is compiled in debug mode. So this shouldnt be the problem.
And it wouldn't explain, why the statically linked MFC library is working
while the dll MFC version is not.

But in the end the program will run under Linux, using Qt... The sample
program is meant to make first steps in HDF5. So I dont think I will have
the same probs in the final release :slight_smile:

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/memory-leaks-with-a-simple-open-close-tp4025625p4025632.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Hi,

There are 2 HDF5 libraries: hdf5-1.6.4_d.lib (debug version) and
hdf5-1.6.4.lib (release version). I use the debug version for my sample
program which is compiled in debug mode. So this shouldnt be the problem.
And it wouldn't explain, why the statically linked MFC library is working
while the dll MFC version is not.

But in the end the program will run under Linux, using Qt... The sample
program is meant to make first steps in HDF5. So I dont think I will have
the same probs in the final release :slight_smile:

It's not just debug vs. release. You also have to look at the underlying C
runtime, which should be the same for all libraries and executables. You
can see what a particular library or program uses by executing "dumpbin
/imports <program>" from a Visual Studio command prompt. Each one should
be linked to the same MSVCR#.dll.

The problem is that Windows implements the C library calls in separate
dlls, which do not share state.

Dana

···

On Tue, Nov 20, 2012 at 10:15 AM, saracaeus <saracaeus@gmx.de> wrote:

this is the output of the dumpbin:

Microsoft (R) COFF/PE Dumper Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

Dump of file TestProject2005.exe

File Type: EXECUTABLE IMAGE

  Section contains the following imports:

    hdf5-1.6.4_d.dll
                42D1E0 Import Address Table
                42C938 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  459 H5check_version
                   F8 H5Fcreate
                   F7 H5Fclose

    MFC80UD.DLL
                42CAEC Import Address Table
                42C244 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                      Ordinal 3275
                      Ordinal 3291
                      Ordinal 3271
                      Ordinal 1184
                      Ordinal 1180
                      Ordinal 1182
                      Ordinal 1178
                      Ordinal 1173
                      Ordinal 7050
                      Ordinal 7052
                      Ordinal 8194
                      Ordinal 2153
                      Ordinal 5956
                      Ordinal 6455
                      Ordinal 4775
                      Ordinal 2634
                      Ordinal 1801
                      Ordinal 2993
                      Ordinal 7003
                      Ordinal 5856
                      Ordinal 8666
                      Ordinal 6841
                      Ordinal 2508
                      Ordinal 6942
                      Ordinal 5922
                      Ordinal 1917
                      Ordinal 5498
                      Ordinal 2176
                      Ordinal 2179
                      Ordinal 8120
                      Ordinal 9158
                      Ordinal 2108
                      Ordinal 5624
                      Ordinal 3306
                      Ordinal 3307
                      Ordinal 4191
                      Ordinal 7240
                      Ordinal 1194
                      Ordinal 6652
                      Ordinal 4138
                      Ordinal 5795
                      Ordinal 5992
                      Ordinal 6775
                      Ordinal 6772
                      Ordinal 3644
                      Ordinal 2514
                      Ordinal 3078
                      Ordinal 908
                      Ordinal 880
                      Ordinal 2628
                      Ordinal 2955
                      Ordinal 2954
                      Ordinal 8006
                      Ordinal 5658
                      Ordinal 5981
                      Ordinal 6960
                      Ordinal 1683
                      Ordinal 2804
                      Ordinal 5045
                      Ordinal 5087
                      Ordinal 6166
                      Ordinal 6162
                      Ordinal 6160
                      Ordinal 662
                      Ordinal 4638
                      Ordinal 1757
                      Ordinal 2891
                      Ordinal 5940
                      Ordinal 6174
                      Ordinal 3975
                      Ordinal 7553
                      Ordinal 7011
                      Ordinal 7046
                      Ordinal 6266
                      Ordinal 5503
                      Ordinal 3080
                      Ordinal 7036
                      Ordinal 7034
                      Ordinal 4114
                      Ordinal 2522
                      Ordinal 5313
                      Ordinal 7276
                      Ordinal 8601
                      Ordinal 6873
                      Ordinal 1341
                      Ordinal 5287
                      Ordinal 7570
                      Ordinal 2644
                      Ordinal 2689
                      Ordinal 6009
                      Ordinal 8669
                      Ordinal 5279
                      Ordinal 8667
                      Ordinal 5613
                      Ordinal 5655
                      Ordinal 888
                      Ordinal 8647
                      Ordinal 8424
                      Ordinal 701
                      Ordinal 7035
                      Ordinal 6893
                      Ordinal 360
                      Ordinal 3281
                      Ordinal 632
                      Ordinal 5648
                      Ordinal 8227
                      Ordinal 1396
                      Ordinal 1492
                      Ordinal 1485
                      Ordinal 5311
                      Ordinal 386
                      Ordinal 4487
                      Ordinal 1669
                      Ordinal 2784
                      Ordinal 5941
                      Ordinal 6970
                      Ordinal 5961
                      Ordinal 1802
                      Ordinal 2994
                      Ordinal 7001
                      Ordinal 6946
                      Ordinal 1916
                      Ordinal 5499
                      Ordinal 8117
                      Ordinal 9157
                      Ordinal 2100
                      Ordinal 2101
                      Ordinal 2244
                      Ordinal 2245
                      Ordinal 2646
                      Ordinal 6278
                      Ordinal 6638
                      Ordinal 6468
                      Ordinal 5884
                      Ordinal 6977
                      Ordinal 714
                      Ordinal 5049
                      Ordinal 6770
                      Ordinal 6170
                      Ordinal 1435
                      Ordinal 400
                      Ordinal 5943
                      Ordinal 6175
                      Ordinal 8342
                      Ordinal 8158
                      Ordinal 5524
                      Ordinal 8094
                      Ordinal 3845
                      Ordinal 4263
                      Ordinal 5897
                      Ordinal 2530
                      Ordinal 6472
                      Ordinal 6599
                      Ordinal 5936
                      Ordinal 7470
                      Ordinal 3816
                      Ordinal 7370
                      Ordinal 1882
                      Ordinal 7579
                      Ordinal 6951
                      Ordinal 2677
                      Ordinal 2642
                      Ordinal 8624
                      Ordinal 3651
                      Ordinal 3643
                      Ordinal 6264
                      Ordinal 725
                      Ordinal 6438
                      Ordinal 5555
                      Ordinal 1676
                      Ordinal 2791
                      Ordinal 5086
                      Ordinal 6165
                      Ordinal 6164
                      Ordinal 4995
                      Ordinal 660
                      Ordinal 5952
                      Ordinal 1863
                      Ordinal 4654
                      Ordinal 7012
                      Ordinal 6945
                      Ordinal 5548
                      Ordinal 6608
                      Ordinal 6611
                      Ordinal 6065
                      Ordinal 6070
                      Ordinal 6067
                      Ordinal 6086
                      Ordinal 6088
                      Ordinal 6072
                      Ordinal 6513
                      Ordinal 6289
                      Ordinal 5852
                      Ordinal 5843
                      Ordinal 6743
                      Ordinal 6526
                      Ordinal 6133
                      Ordinal 886
                      Ordinal 6969
                      Ordinal 1359
                      Ordinal 2670
                      Ordinal 1756
                      Ordinal 2890
                      Ordinal 1358
                      Ordinal 5510
                      Ordinal 3279
                      Ordinal 3277
                      Ordinal 3294
                      Ordinal 3289
                      Ordinal 3273
                      Ordinal 3296
                      Ordinal 3284
                      Ordinal 3266
                      Ordinal 3268
                      Ordinal 3286
                      Ordinal 3002
                      Ordinal 2992
                      Ordinal 2064
                      Ordinal 8668
                      Ordinal 5280
                      Ordinal 8670
                      Ordinal 4655
                      Ordinal 6730
                      Ordinal 1864
                      Ordinal 2580
                      Ordinal 2222
                      Ordinal 2221
                      Ordinal 2152
                      Ordinal 6998
                      Ordinal 893
                      Ordinal 1160
                      Ordinal 3508
                      Ordinal 3803
                      Ordinal 3972
                      Ordinal 5990
                      Ordinal 3780
                      Ordinal 3999
                      Ordinal 3511
                      Ordinal 3684
                      Ordinal 3503
                      Ordinal 5151
                      Ordinal 5152
                      Ordinal 5142
                      Ordinal 3682
                      Ordinal 5506
                      Ordinal 6179
                      Ordinal 5944
                      Ordinal 7685
                      Ordinal 432
                      Ordinal 641
                      Ordinal 652
                      Ordinal 747
                      Ordinal 871
                      Ordinal 4870
                      Ordinal 900
                      Ordinal 910
                      Ordinal 5052
                      Ordinal 901
                      Ordinal 1578
                      Ordinal 1223
                      Ordinal 4854

    MSVCR80D.dll
                42CFFC Import Address Table
                42C754 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   39 ?_type_info_dtor_internal_method@type_info@@QAEXXZ
                  187 _crt_debugger_hook
                  1B0 _except_handler4_common
                  251 _invoke_watson
                  178 _controlfp_s
                   47 ?terminate@@YAXXZ
                   9A __CxxFrameHandler3
                   23 ??_V@YAXPAX@Z
                  175 _configthreadlocale
                  112 __setusermatherr
                  19C _decode_pointer
                  365 _onexit
                  3B8 _snprintf_s
                  1AD _errno
                   7F _CxxThrowException
                   63 _CrtDbgReport
                  539 free
                  5A6 strcpy
                  5DF wcscpy
                  45A _vsnprintf_s
                  57F memset
                  45E _vsnwprintf_s
                  3C0 _snwprintf_s
                  5E0 wcscpy_s
                  5E8 wcsncpy_s
                  5A7 strcpy_s
                  519 calloc
                  382 _recalloc
                  57A memcmp
                  47E _wcsicmp
                  57E memmove_s
                  5E3 wcslen
                  2BC _lock
                   BD __dllonexit
                  432 _unlock
                   5F _CRT_RTC_INITW
                  24C _initterm_e
                  24B _initterm
                   64 _CrtDbgReportW
                   75 _CrtSetCheckCount
                  476 _wcmdln
                  521 exit
                  163 _cexit
                   8D _XcptFilter
                  1B9 _exit
                  126 __wgetmainargs
                  14C _amsg_exit
                  10F __set_app_type
                  1A7 _encode_pointer
                   F9 __p__fmode
                   F2 __p__commode
                  13A _adjust_fdiv

    KERNEL32.dll
                42C9D8 Import Address Table
                42C130 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  275 MultiByteToWideChar
                  394 WideCharToMultiByte
                   78 DebugBreak
                  2A7 RaiseException
                  239 IsDebuggerPresent
                  36E UnhandledExceptionFilter
                  142 GetCurrentProcess
                  35E TerminateProcess
                  1CA GetSystemTimeAsFileTime
                  143 GetCurrentProcessId
                  146 GetCurrentThreadId
                  3CC lstrlenA
                  2A3 QueryPerformanceCounter
                  34A SetUnhandledExceptionFilter
                  1B8 GetStartupInfoW
                  226 InterlockedCompareExchange
                  356 Sleep
                  229 InterlockedExchange
                  1A3 GetProcessHeap
                  17E GetModuleFileNameW
                  388 VirtualQuery
                  252 LoadLibraryA
                  1A0 GetProcAddress
                  1DF GetTickCount
                  274 MulDiv
                  1E9 GetVersionExA
                   FD GetACP
                  174 GetLocaleInfoA
                  1DA GetThreadLocale
                   34 CloseHandle
                  316 SetEvent
                  27D OpenEventA
                  28D OutputDebugStringA
                  28E OutputDebugStringW
                  171 GetLastError
                  381 VirtualAlloc
                  371 UnmapViewOfFile
                  1C5 GetSystemInfo
                  268 MapViewOfFile
                   54 CreateFileMappingA
                  145 GetCurrentThread
                  1E8 GetVersion
                  280 OpenFileMappingA
                  22C InterlockedIncrement
                  228 InterlockedDecrement
                  17D GetModuleFileNameA
                   F8 FreeLibrary
                  210 HeapAlloc
                  216 HeapFree

    COMCTL32.dll
                42C9A8 Import Address Table
                42C100 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   5D InitCommonControlsEx

    OLEAUT32.dll
                42D120 Import Address Table
                42C878 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                      Ordinal 6

    WS2_32.dll
                42D1B0 Import Address Table
                42C908 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                      Ordinal 115

    USER32.dll
                42D150 Import Address Table
                42C8A8 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   4A CopyRect
                  1A9 IsRectEmpty
                  20C PtInRect
                  26C SetRect
                  26D SetRectEmpty
                   DF EqualRect
                  18A InflateRect
                  1F5 OffsetRect
                  2AF UnionRect
                  295 SubtractRect
                  192 IntersectRect

    ADVAPI32.dll
                42C970 Import Address Table
                42C0C8 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  216 RevertToSelf
                  245 SetThreadToken
                  1B1 OpenThreadToken

  Summary

        1000 .data
        2000 .idata
        8000 .rdata
        A000 .rsrc
       12000 .text
       10000 .textbss

I am a simple application... so what i see is which module comes with which
object. Nothing more :frowning:
Perhaps you can read more out of this stuff.

But what I am more concerned about: How this stuff behaves in Linux? Is it a
Microsoft only problem or can this stuff even happen on Linux?

Thank you.

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/memory-leaks-with-a-simple-open-close-tp4025625p4025643.html
Sent from the hdf-forum mailing list archive at Nabble.com.

and this is the output of the statically MFC-linked version (= the version
w/o memory leaks):

Microsoft (R) COFF/PE Dumper Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

Dump of file testproject2005.exe

File Type: EXECUTABLE IMAGE

  Section contains the following imports:

    hdf5-1.6.4_d.dll
                7B529C Import Address Table
                7B40D8 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  459 H5check_version
                   F8 H5Fcreate
                   F7 H5Fclose

    KERNEL32.dll
                7B4798 Import Address Table
                7B35D4 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  280 OpenFileMappingA
                   54 CreateFileMappingA
                  268 MapViewOfFile
                  371 UnmapViewOfFile
                   C4 FileTimeToLocalFileTime
                  27D OpenEventA
                  143 GetCurrentProcessId
                  1F7 GlobalAddAtomW
                  201 GlobalGetAtomNameW
                  20A GlobalUnlock
                  203 GlobalLock
                  3CD lstrlenW
                  394 WideCharToMultiByte
                  328 SetLastError
                  171 GetLastError
                   E6 FindResourceW
                  355 SizeofResource
                  265 LockResource
                  257 LoadResource
                  1E8 GetVersion
                   FA FreeResource
                  1A0 GetProcAddress
                  255 LoadLibraryW
                  182 GetModuleHandleW
                  1E9 GetVersionExA
                  275 MultiByteToWideChar
                  1FA GlobalDeleteAtom
                  1FC GlobalFindAtomW
                  146 GetCurrentThreadId
                   F8 FreeLibrary
                  3C1 lstrcmpW
                  252 LoadLibraryA
                   3B CompareStringW
                  344 SetThreadPriority
                  1DB GetThreadPriority
                  2D2 ResumeThread
                  358 SuspendThread
                  1FF GlobalFree
                  17E GetModuleFileNameW
                   A4 EnumResourceLanguagesW
                   3F ConvertDefaultLocale
                  254 LoadLibraryExW
                  175 GetLocaleInfoW
                  145 GetCurrentThread
                  3C0 lstrcmpA
                  313 SetEnvironmentVariableA
                   53 CreateFileA
                  135 GetConsoleOutputCP
                  399 WriteConsoleA
                  337 SetStdHandle
                  1E2 GetTimeZoneInformation
                  133 GetConsoleMode
                  122 GetConsoleCP
                  1E3 GetUserDefaultLCID
                   AF EnumSystemLocalesA
                  241 IsValidLocale
                  174 GetLocaleInfoA
                  147 GetDateFormatA
                  1E0 GetTimeFormatA
                  1BD GetStringTypeW
                  1BA GetStringTypeA
                  245 LCMapStringW
                  244 LCMapStringA
                  2EE SetConsoleCtrlHandler
                  23F IsValidCodePage
                  104 GetCPInfo
                  193 GetOEMCP
                   FD GetACP
                  21A HeapReAlloc
                   C0 FatalAppExitA
                  239 IsDebuggerPresent
                  36E UnhandledExceptionFilter
                  35E TerminateProcess
                  383 VirtualFree
                  212 HeapCreate
                  214 HeapDestroy
                  1B7 GetStartupInfoA
                  324 SetHandleCount
                  111 GetCommandLineW
                  110 GetCommandLineA
                  157 GetEnvironmentStringsW
                   F7 FreeEnvironmentStringsW
                  155 GetEnvironmentStrings
                   F6 FreeEnvironmentStringsA
                  1CA GetSystemTimeAsFileTime
                  2A3 QueryPerformanceCounter
                  34A SetUnhandledExceptionFilter
                  28E OutputDebugStringW
                  166 GetFileType
                  3A3 WriteConsoleW
                  28D OutputDebugStringA
                  1B9 GetStdHandle
                   78 DebugBreak
                  17D GetModuleFileNameA
                  388 VirtualQuery
                  1C5 GetSystemInfo
                  381 VirtualAlloc
                   BA ExitThread
                   6F CreateThread
                   B9 ExitProcess
                  2A7 RaiseException
                  233 IsBadReadPtr
                  220 HeapValidate
                  2D7 RtlUnwind
                  1B8 GetStartupInfoW
                  1A3 GetProcessHeap
                  210 HeapAlloc
                  216 HeapFree
                   E5 FindResourceExW
                   C5 FileTimeToSystemTime
                  31A SetFileAttributesW
                  35B SystemTimeToFileTime
                  25A LocalFileTimeToFileTime
                  1B6 GetShortPathNameW
                  3C4 lstrcmpiW
                  1DA GetThreadLocale
                  1BC GetStringTypeExW
                  1EC GetVolumeInformationW
                   D5 FindFirstFileW
                   CE FindClose
                   84 DeleteFileW
                  271 MoveFileW
                  163 GetFileSize
                  310 SetEndOfFile
                  36F UnlockFile
                  263 LockFile
                   EE FlushFileBuffers
                  31B SetFilePointer
                  3A4 WriteFile
                  2B5 ReadFile
                   56 CreateFileW
                  1F8 GlobalAlloc
                  142 GetCurrentProcess
                   93 DuplicateHandle
                  16E GetHandleInformation
                  141 GetCurrentDirectoryW
                  1C2 GetSystemDirectoryW
                  386 VirtualProtect
                  1EA GetVersionExW
                   FF GetAtomNameW
                  3CC lstrlenA
                   46 CopyFileW
                  207 GlobalSize
                   F4 FormatMessageW
                  365 TlsGetValue
                  25F LocalReAlloc
                  366 TlsSetValue
                   98 EnterCriticalSection
                  206 GlobalReAlloc
                  251 LeaveCriticalSection
                  364 TlsFree
                  202 GlobalHandle
                   81 DeleteCriticalSection
                  363 TlsAlloc
                  223 InitializeCriticalSection
                  258 LocalAlloc
                  25C LocalFree
                  17F GetModuleHandleA
                  22C InterlockedIncrement
                  1FE GlobalFlags
                  228 InterlockedDecrement
                  315 SetErrorMode
                  274 MulDiv
                  1AF GetProfileIntW
                  2DC SearchPathW
                  1D6 GetTempPathW
                  150 GetDiskFreeSpaceW
                  16A GetFullPathNameW
                  1D4 GetTempFileNameW
                  165 GetFileTime
                  31F SetFileTime
                  161 GetFileAttributesW
                  1DF GetTickCount
                  3AA WritePrivateProfileStringW
                  19D GetPrivateProfileStringW
                  197 GetPrivateProfileIntW
                   50 CreateEventW
                  316 SetEvent
                  390 WaitForSingleObject
                   34 CloseHandle
                   3A CompareStringA
                  229 InterlockedExchange

    USER32.dll
                7B4CAC Import Address Table
                7B3AE8 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  10F GetDialogBaseUnits
                  103 GetClipboardFormatNameW
                  102 GetClipboardFormatNameA
                   F2 GetAsyncKeyState
                  1D9 MapVirtualKeyW
                  120 GetKeyNameTextW
                  29A SystemParametersInfoW
                   3A CheckMenuRadioItem
                  12F GetMenuContextHelpId
                  25E SetMenuContextHelpId
                  1C8 LoadMenuIndirectW
                  22B RemoveMenu
                  1E8 ModifyMenuW
                  18F InsertMenuItemW
                  190 InsertMenuW
                  263 SetMenuItemInfoW
                  135 GetMenuItemInfoW
                  139 GetMenuStringW
                  137 GetMenuState
                  133 GetMenuItemID
                  130 GetMenuDefaultItem
                  25F SetMenuDefaultItem
                   C2 EnableMenuItem
                   39 CheckMenuItem
                    9 AppendMenuW
                   91 DeleteMenu
                  1A7 IsMenu
                   5E CreatePopupMenu
                   5D CreateMenu
                  233 ScrollDC
                  17E GrayStringW
                  15F GetTabbedTextExtentW
                   BE DrawTextExW
                   BF DrawTextW
                   B3 DrawFocusRect
                   B5 DrawFrameControl
                   B2 DrawEdge
                   BB DrawStateW
                   B6 DrawIcon
                  195 InvertRect
                   E9 FrameRect
                   E0 ExcludeUpdateRgn
                  2D3 WindowFromDC
                  15B GetSysColorBrush
                   E2 FillRect
                   95 DestroyCursor
                  2CF WaitMessage
                  21B RegisterClipboardFormatW
                  10B GetCursorPos
                  13E GetMessageW
                  2AA TranslateMessage
                   C6 EndDialog
                   54 CreateDialogIndirectParamW
                  1EC MoveWindow
                  287 SetWindowTextW
                  1A2 IsDialogMessageW
                  235 ScrollWindowEx
                  1A3 IsDlgButtonChecked
                  254 SetDlgItemTextW
                  252 SetDlgItemInt
                  114 GetDlgItemTextW
                  112 GetDlgItemInt
                   3B CheckRadioButton
                   38 CheckDlgButton
                  1F9 OpenIcon
                   44 CloseWindow
                  1BD LoadCursorW
                  206 PostThreadMessageW
                  16B GetWindowContextHelpId
                  27F SetWindowContextHelpId
                  242 SendNotifyMessageW
                  117 GetForegroundWindow
                  257 SetForegroundWindow
                  28D ShowCaret
                  17F HideCaret
                  246 SetCaretPos
                   F5 GetCaretPos
                   4E CreateCaret
                  106 GetClipboardViewer
                  104 GetClipboardOwner
                  144 GetOpenClipboardWindow
                  1F6 OpenClipboard
                  24B SetClipboardViewer
                   1F ChangeClipboardChain
                   E7 FlashWindow
                  2D4 WindowFromPoint
                  266 SetParent
                   E5 FindWindowExW
                   E6 FindWindowW
                   3D ChildWindowFromPointEx
                   3C ChildWindowFromPoint
                  290 ShowScrollBar
                   37 CharUpperW
                  142 GetNextDlgGroupItem
                   A9 DlgDirSelectComboBoxExW
                   AB DlgDirSelectExW
                   A6 DlgDirListComboBoxW
                   A7 DlgDirListW
                  244 SetCapture
                  1B5 KillTimer
                  27A SetTimer
                   AF DrawCaption
                   AE DrawAnimatedRects
                   C3 EnableScrollBar
                  215 RedrawWindow
                  1CF LockWindowUpdate
                  10D GetDCEx
                  28F ShowOwnedPopups
                  1B1 IsWindowVisible
                  2C5 ValidateRgn
                  2C4 ValidateRect
                  194 InvalidateRgn
                  193 InvalidateRect
                  165 GetUpdateRgn
                  164 GetUpdateRect
                  2BC UpdateWindow
                  16C GetWindowDC
                   C8 EndPaint
                    D BeginPaint
                   40 ClientToScreen
                  175 GetWindowRgn
                  284 SetWindowRgn
                    A ArrangeIconicWindows
                  180 HiliteMenuItem
                  15C GetSystemMenu
                   B8 DrawMenuBar
                   AC DragDetect
                  12E GetMenuCheckMarkDimensions
                  1B9 LoadBitmapW
                  261 SetMenuItemBitmaps
                  1E6 MessageBoxW
                   61 CreateWindowExW
                   F8 GetClassInfoExW
                  219 RegisterClassW
                  237 SendDlgItemMessageW
                  236 SendDlgItemMessageA
                   FF GetClientRect
                  1DA MapWindowPoints
                   A2 DispatchMessageW
                  243 SetActiveWindow
                    2 AdjustWindowRectEx
                  231 ScreenToClient
                   90 DeferWindowPos
                    C BeginDeferWindowPos
                   4A CopyRect
                   C5 EndDeferWindowPos
                  234 ScrollWindow
                  155 GetScrollInfo
                  26E SetScrollInfo
                  157 GetScrollRange
                  270 SetScrollRange
                  156 GetScrollPos
                  26F SetScrollPos
                  163 GetTopWindow
                  19E IsChild
                  2A5 TrackPopupMenuEx
                  2A4 TrackPopupMenu
                  282 SetWindowPlacement
                  179 GetWindowTextLengthW
                  17A GetWindowTextW
                   99 DestroyWindow
                  28B SetWindowsHookExW
                   1A CallNextHookEx
                   FB GetClassLongW
                  26B SetPropW
                  2AE UnhookWindowsHookEx
                  2B3 UnregisterClassA
                  1ED MsgWaitForMultipleObjects
                  200 PeekMessageA
                  14B GetPropW
                   1C CallWindowProcW
                  22D RemovePropW
                   8F DefWindowProcW
                  13D GetMessageTime
                  13C GetMessagePos
                  1F5 OffsetRect
                  192 IntersectRect
                  299 SystemParametersInfoA
                  1A6 IsIconic
                  173 GetWindowPlacement
                  174 GetWindowRect
                  29C TabbedTextOutW
                  1D5 MapDialogRect
                  10C GetDC
                   96 DestroyIcon
                   2C CharNextW
                   47 CopyAcceleratorTableW
                  1DE MessageBeep
                  20C PtInRect
                  188 InSendMessage
                  22A ReleaseDC
                  26D SetRectEmpty
                  1A9 IsRectEmpty
                  15E GetTabbedTextExtentA
                  2B4 UnregisterClassW
                  19F IsClipboardFormatAvailable
                  143 GetNextDlgTabItem
                  1B0 IsWindowUnicode
                  13A GetMessageA
                   A1 DispatchMessageA
                  295 SubtractRect
                  2AF UnionRect
                  18A InflateRect
                  26C SetRect
                  1B3 IsZoomed
                  15D GetSystemMetrics
                  228 RegisterWindowMessageW
                   F9 GetClassInfoW
                  128 GetLastActivePopup
                    F BringWindowToTop
                   FD GetClassNameW
                  15A GetSysColor
                  116 GetFocus
                  145 GetParent
                   DF EqualRect
                  111 GetDlgItem
                  281 SetWindowLongW
                  121 GetKeyState
                  283 SetWindowPos
                  110 GetDlgCtrlID
                  132 GetMenuItemCount
                  159 GetSubMenu
                  2B2 UnpackDDElParam
                  230 ReuseDDElParam
                  2D2 WinHelpW
                  25D SetMenu
                  12C GetMenu
                  1BF LoadIconW
                  1C9 LoadMenuW
                   97 DestroyMenu
                  256 SetFocus
                  17B GetWindowThreadProcessId
                   EB GetActiveWindow
                  16F GetWindowLongW
                  292 ShowWindow
                  10E GetDesktopWindow
                  16A GetWindow
                  1AE IsWindowEnabled
                  240 SendMessageW
                   C4 EnableWindow
                  1AD IsWindow
                  24D SetCursor
                  201 PeekMessageW
                  203 PostMessageW
                   F3 GetCapture
                  229 ReleaseCapture
                  2A8 TranslateAcceleratorW
                  1B7 LoadAcceleratorsW
                  204 PostQuitMessage

    GDI32.dll
                7B439C Import Address Table
                7B31D8 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   44 CreateMetaFileW
                  196 GetObjectType
                  197 GetObjectW
                   3E CreateFontW
                  15D GetCharWidthW
                   8F DeleteObject
                   2C CreateCompatibleBitmap
                   2D CreateCompatibleDC
                  20E SelectObject
                  24A StretchDIBits
                   8C DeleteDC
                   3D CreateFontIndirectW
                   28 CreateBitmapIndirect
                  213 SetBitmapBits
                  14A GetBitmapBits
                  214 SetBitmapDimensionEx
                  14B GetBitmapDimensionEx
                   34 CreateDiscardableBitmap
                   45 CreatePalette
                   3F CreateHalftonePalette
                  19A GetPaletteEntries
                  230 SetPaletteEntries
                    9 AnimatePalette
                  194 GetNearestPaletteIndex
                  1FF ResizePalette
                   4B CreateRectRgn
                   4C CreateRectRgnIndirect
                   35 CreateEllipticRgn
                   36 CreateEllipticRgnIndirect
                   4A CreatePolygonRgn
                   49 CreatePolyPolygonRgn
                   4D CreateRoundRectRgn
                  1DE PathToRegion
                   D9 ExtCreateRegion
                  1A2 GetRegionData
                  236 SetRectRgn
                   21 CombineRgn
                   D3 EqualRgn
                  1D4 OffsetRgn
                  1A4 GetRgnBox
                  1F0 PtInRegion
                  1F4 RectInRegion
                   42 CreateICW
                  16B GetDeviceCaps
                  150 GetBrushOrgEx
                  219 SetBrushOrgEx
                   D2 EnumObjects
                  193 GetNearestColor
                  1F3 RealizePalette
                  253 UpdateColors
                  14C GetBkColor
                  14D GetBkMode
                  19E GetPolyFillMode
                  19F GetROP2
                  1A6 GetStretchBltMode
                  1AF GetTextColor
                  18D GetMapMode
                  183 GetGraphicsMode
                  1C4 GetWorldTransform
                  1C0 GetViewportOrgEx
                  1BF GetViewportExtEx
                  1C3 GetWindowOrgEx
                  1C2 GetWindowExtEx
                   51 DPtoLP
                  1CB LPtoDP
                   E8 FillRgn
                   ED FrameRgn
                  1C8 InvertRgn
                  1DC PaintRgn
                  1F1 PtVisible
                  1F5 RectVisible
                  165 GetCurrentPositionEx
                    B Arc
                  1EE Polyline
                   19 Chord
                   94 Ellipse
                  1DF Pie
                  1ED Polygon
                  1E9 PolyPolygon
                  1F6 Rectangle
                  201 RoundRect
                  1DD PatBlt
                   12 BitBlt
                  249 StretchBlt
                  19C GetPixel
                  231 SetPixel
                   EB FloodFill
                   DB ExtFloodFill
                  24F TextOutW
                  1B5 GetTextExtentPoint32W
                  1AB GetTextAlign
                  1BB GetTextFaceW
                   1E CloseMetaFile
                  1AC GetTextCharacterExtra
                  17A GetFontLanguageInfo
                  15F GetCharacterPlacementW
                  148 GetAspectRatioFilterEx
                   D4 Escape
                  217 SetBoundsRect
                  14E GetBoundsRect
                  1FE ResetDCW
                  199 GetOutlineTextMetricsW
                  155 GetCharABCWidthsW
                  179 GetFontData
                  189 GetKerningPairsW
                  181 GetGlyphOutlineW
                  246 StartDocW
                  248 StartPage
                   98 EndPage
                  210 SetAbortProc
                    0 AbortDoc
                   96 EndDoc
                  1CE MaskBlt
                  1E4 PlgBlt
                  233 SetPixelV
                    8 AngleArc
                  147 GetArcDirection
                  1EA PolyPolyline
                  162 GetColorAdjustment
                  164 GetCurrentObject
                  1E5 PolyBezier
                   93 DrawEscape
                   DA ExtEscape
                  153 GetCharABCWidthsFloatW
                  15A GetCharWidthFloatW
                    1 AbortPath
                   11 BeginPath
                   1D CloseFigure
                   99 EndPath
                   E7 FillPath
                   EA FlattenPath
                  192 GetMiterLimit
                  19B GetPath
                  22F SetMiterLimit
                  24B StrokeAndFillPath
                  24C StrokePath
                  256 WidenPath
                   F4 GdiComment
                  1E0 PlayEnhMetaFile
                  207 SaveDC
                  200 RestoreDC
                  20F SelectPalette
                  216 SetBkMode
                  234 SetPolyFillMode
                  235 SetROP2
                  238 SetStretchBltMode
                  224 SetGraphicsMode
                  244 SetWorldTransform
                  1D0 ModifyWorldTransform
                  22B SetMapMode
                  23F SetViewportOrgEx
                  1D5 OffsetViewportOrgEx
                  23E SetViewportExtEx
                  208 ScaleViewportExtEx
                  243 SetWindowOrgEx
                  1D6 OffsetWindowOrgEx
                  242 SetWindowExtEx
                  209 ScaleWindowExtEx
                  20C SelectClipRgn
                   D7 ExcludeClipRect
                  1C7 IntersectClipRect
                  1D3 OffsetClipRgn
                  1D1 MoveToEx
                  1CD LineTo
                  23A SetTextAlign
                  23D SetTextJustification
                  23B SetTextCharacterExtra
                  22C SetMapperFlags
                    C ArcTo
                  211 SetArcDirection
                  1E7 PolyDraw
                  1EF PolylineTo
                  21A SetColorAdjustment
                  1E6 PolyBezierTo
                  161 GetClipRgn
                  20B SelectClipPath
                   DC ExtSelectClipRgn
                  1E3 PlayMetaFileRecord
                   D1 EnumMetaFile
                  1E2 PlayMetaFile
                   26 CopyMetaFileW
                  1B4 GetTextExtentPoint32A
                   CB EnumFontFamiliesExW
                   8E DeleteMetaFile
                   38 CreateEnhMetaFileW
                   1C CloseEnhMetaFile
                   DE ExtTextOutW
                  167 GetDCOrgEx
                  160 GetClipBox
                  23C SetTextColor
                  215 SetBkColor
                   27 CreateBitmap
                  1A5 GetStockObject
                   2F CreateDCW
                  252 UnrealizeObject
                   47 CreatePen
                   48 CreatePenIndirect
                   D8 ExtCreatePen
                   50 CreateSolidBrush
                   40 CreateHatchBrush
                   29 CreateBrushIndirect
                   46 CreatePatternBrush
                   31 CreateDIBPatternBrushPt
                  1BD GetTextMetricsW

    comdlg32.dll
                7B526C Import Address Table
                7B40A8 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                    8 GetFileTitleW

    WINSPOOL.DRV
                7B5180 Import Address Table
                7B3FBC Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   47 DocumentPropertiesW
                   7E OpenPrinterW
                   6D GetJobW
                   1B ClosePrinter

    ADVAPI32.dll
                7B42F0 Import Address Table
                7B312C Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  1D7 RegDeleteKeyW
                  1D3 RegCreateKeyW
                  206 RegSetValueW
                   F1 GetFileSecurityW
                  22F SetFileSecurityW
                  1D9 RegDeleteValueW
                  205 RegSetValueExW
                  1D2 RegCreateKeyExW
                  1B1 OpenThreadToken
                  1EE RegOpenKeyW
                  1E0 RegEnumKeyW
                  1F9 RegQueryValueW
                  1ED RegOpenKeyExW
                  1F8 RegQueryValueExW
                  1CB RegCloseKey
                  245 SetThreadToken
                  216 RevertToSelf

    SHELL32.dll
                7B4C24 Import Address Table
                7B3A60 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   23 DragQueryFileW
                   1E DragAcceptFiles
                   AD SHGetFileInfoW
                   31 ExtractIconW
                   1F DragFinish

    COMCTL32.dll
                7B436C Import Address Table
                7B31A8 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   5D InitCommonControlsEx

    SHLWAPI.dll
                7B4C68 Import Address Table
                7B3AA4 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   30 PathFindExtensionW
                   70 PathRemoveExtensionW
                   5A PathIsUNCW
                   32 PathFindFileNameW
                   7E PathStripToRootW

    oledlg.dll
                7B5468 Import Address Table
                7B42A4 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                    E OleUIInsertObjectW
                    A OleUIConvertW
                    6 OleUIChangeIconW
                    C OleUIEditLinksW
                   16 OleUIUpdateLinksW
                   12 OleUIPasteSpecialW
                    3 OleUIBusyW

    ole32.dll
                7B52D4 Import Address Table
                7B4110 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  104 OleTranslateAccelerator
                   FB OleRegGetMiscStatus
                   FA OleRegEnumVerbs
                   E9 OleFlushClipboard
                  101 OleSetClipboard
                   F0 OleIsCurrentClipboard
                   5C CoRevokeClassObject
                   50 CoRegisterClassObject
                   53 CoRegisterMessageFilter
                  135 StringFromGUID2
                   7D CreateILockBytesOnHGlobal
                  124 StgCreateDocfileOnILockBytes
                  131 StgOpenStorageOnILockBytes
                   22 CoGetClassObject
                   15 CoDisconnectObject
                  114 ReleaseStgMedium
                   64 CoTaskMemAlloc
                   C7 IsAccelerator
                  134 StringFromCLSID
                  10E ReadClassStg
                  110 ReadFmtUserTypeStg
                   FC OleRegGetUserType
                  140 WriteClassStg
                  142 WriteFmtUserTypeStg
                  11E SetConvertStg
                   76 CreateBindCtx
                   65 CoTaskMemFree
                   E8 OleDuplicateData
                   E3 OleCreateMenuDescriptor
                   E5 OleDestroyMenuDescriptor
                   10 CoCreateInstance
                   FD OleRun
                   7E CreateItemMoniker
                   7C CreateGenericComposite
                   7B CreateFileMoniker
                   8D GetClassFile
                   83 CreateStreamOnHGlobal
                   F4 OleLockRunning
                   89 DoDragDrop
                  103 OleSetMenuDescriptor
                   F8 OleQueryLinkFromData
                   F7 OleQueryCreateFromData
                   EB OleGetClipboard
                   78 CreateDataAdviseHolder
                   80 CreateOleAdviseHolder
                  12A StgIsStorageFile
                  12E StgOpenStorage
                  123 StgCreateDocfile
                   2E CoGetMalloc
                   44 CoLockObjectExternal
                   94 GetRunningObjectTable
                   F1 OleIsRunning
                   FF OleSaveToStream
                  141 WriteClassStm
                   EC OleGetIconOfClass
                   91 GetHGlobalFromILockBytes
                   1C CoFreeUnusedLibraries
                  105 OleUninitialize
                   EE OleInitialize
                    8 CLSIDFromString
                    6 CLSIDFromProgID
                  12B StgIsStorageILockBytes
                   FE OleSave
                   F2 OleLoad
                   D5 OleCreate
                   6C CoUnmarshalInterface
                   47 CoMarshalInterface
                   57 CoReleaseMarshalData
                   E1 OleCreateLinkToFile
                   DB OleCreateFromFile
                   E4 OleCreateStaticFromData
                   DF OleCreateLinkFromData
                   D9 OleCreateFromData
                   68 CoTreatAsClass
                  102 OleSetContainedObject

    OLEAUT32.dll
                7B4B2C Import Address Table
                7B3968 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                      Ordinal 4
                      Ordinal 9
                      Ordinal 12
                      Ordinal 8
                      Ordinal 6
                      Ordinal 7
                      Ordinal 150
                      Ordinal 149
                      Ordinal 17
                      Ordinal 18
                      Ordinal 420
                      Ordinal 16
                      Ordinal 2
                      Ordinal 24
                      Ordinal 23
                      Ordinal 19
                      Ordinal 20
                      Ordinal 40
                      Ordinal 15
                      Ordinal 10
                      Ordinal 5
                      Ordinal 104
                      Ordinal 113
                      Ordinal 27
                      Ordinal 37
                      Ordinal 14
                      Ordinal 36
                      Ordinal 25
                      Ordinal 148
                      Ordinal 26
                      Ordinal 21
                      Ordinal 22
                      Ordinal 39
                      Ordinal 38
                      Ordinal 232
                      Ordinal 197
                      Ordinal 94
                      Ordinal 114
                      Ordinal 161
                      Ordinal 185
                      Ordinal 331
                      Ordinal 330
                      Ordinal 184

    WS2_32.dll
                7B51BC Import Address Table
                7B3FF8 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                      Ordinal 112
                      Ordinal 115
                      Ordinal 12
                      Ordinal 15
                      Ordinal 1
                      Ordinal 22
                      Ordinal 13
                      Ordinal 10
                      Ordinal 2
                      Ordinal 7
                      Ordinal 21
                      Ordinal 6
                      Ordinal 5
                      Ordinal 4
                      Ordinal 20
                      Ordinal 17
                      Ordinal 23
                      Ordinal 18
                      Ordinal 111
                      Ordinal 101
                      Ordinal 19
                      Ordinal 16
                      Ordinal 52
                      Ordinal 3
                      Ordinal 8
                      Ordinal 11
                      Ordinal 9
                      Ordinal 116

  Section contains the following delay load imports:

    OLEACC.dll
              00000001 Characteristics
              007B0E2C Address of HMODULE
              007B9078 Import Address Table
              007B9040 Import Name Table
              007B9208 Bound Import Name Table
              00000000 Unload Import Name Table
                     0 time date stamp

          006A2439 0 LresultFromObject
          006A244B 0 AccessibleObjectFromWindow
          006A2412 0 CreateStdAccessibleObject

  Summary

        B000 .data
        1000 .didat
        6000 .idata
       F1000 .rdata
        F000 .rsrc
      1D8000 .text
       DE000 .textbss

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/memory-leaks-with-a-simple-open-close-tp4025625p4025645.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Hi,

    MSVCR80D.dll

Your executable is linked to MSVCR80D.dll. I'd imagine that you'll find
that if you run dumpbin /imports on the HDF5 library, you'll find that it's
linked to MSVCR71.dll and that this is the problem. The solution is to
either build your application with the same version of Visual Studio that
the library used or to rebuild that version of HDF5 with Visual Studio 2005.

Actually, the best solution would be to move to a currently-supported
version of HDF5 and a recent version of Visual Studio. HDF5 1.6.4 and
VS2005 are really, really old and out of date :slight_smile:

But what I am more concerned about: How this stuff behaves in Linux? Is it
a
Microsoft only problem or can this stuff even happen on Linux?

This is only a Windows problem. In Linux the C runtime is a part of the
core operating system so the problem of unshared CRT state does not exist.

Dana

Dana, first of all: thousand thanks for your time you take for this problem.

This is the output of the dumpbin on the hdf5-dll:

Microsoft (R) COFF/PE Dumper Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

Dump of file hdf5-1.6.4_d.dll

File Type: DLL

  Section contains the following imports:

    zlib-1.2.3_d.dll
              103C1580 Import Address Table
              103C12D4 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                   2A inflateInit_
                   23 inflate
                   28 inflateEnd
                    2 compress2

    szlib-2.0_d.dll
              103C1548 Import Address Table
              103C129C Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                    1 SZ_BufftoBuffDecompress
                    0 SZ_BufftoBuffCompress
                    8 SZ_encoder_enabled

    KERNEL32.dll
              103C1310 Import Address Table
              103C1064 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  143 GetCurrentProcessId
                  1DF GetTickCount
                  2A3 QueryPerformanceCounter
                  239 IsDebuggerPresent
                  34A SetUnhandledExceptionFilter
                  36E UnhandledExceptionFilter
                  142 GetCurrentProcess
                   8B DisableThreadLibraryCalls
                  1CA GetSystemTimeAsFileTime
                  162 GetFileInformationByHandle
                  310 SetEndOfFile
                  31B SetFilePointer
                  35E TerminateProcess
                  226 InterlockedCompareExchange
                  356 Sleep
                  229 InterlockedExchange
                  146 GetCurrentThreadId

    MSVCR80D.dll
              103C138C Import Address Table
              103C10E0 Import Name Table
                     0 time date stamp
                     0 Index of first forwarder reference

                  531 fprintf
                   C8 __iob_func
                  5AC strlen
                  59B sprintf
                  597 setvbuf
                  5BA strtol
                  553 isdigit
                  551 isalpha
                  5AD strncat
                  5A1 strcat
                  534 fputs
                  5D3 vsprintf
                  5A6 strcpy
                  5A3 strchr
                  585 putc
                  559 isspace
                  1AD _errno
                  523 fabs
                  527 fflush
                  5B0 strncpy
                  55A isupper
                  533 fputc
                  3E1 _strdup
                  57B memcpy
                  539 free
                  57A memcmp
                  57D memmove
                  2C6 _lseeki64
                  52F fopen
                  210 _get_osfhandle
                  1F0 _fstat64
                  524 fclose
                  5B6 strstr
                  50A abort
                  519 calloc
                  1C8 _fileno
                  541 ftell
                  53F fseek
                  41F _tzset
                  537 fread
                  544 fwrite
                  5A8 strcspn
                  5B4 strrchr
                  5AF strncmp
                  58F realloc
                  416 _time64
                  361 _mktime64
                  1F7 _ftime64
                  23C _gmtime64
                  5AB strftime
                  2BA _localtime64
                  59E srand
                  58D rand
                  51A ceil
                  432 _unlock
                   BD __dllonexit
                  1A7 _encode_pointer
                  2BC _lock
                  365 _onexit
                  19C _decode_pointer
                  2CE _malloc_dbg
                  1E3 _free_dbg
                  1A8 _encoded_null
                   75 _CrtSetCheckCount
                  24B _initterm
                  24C _initterm_e
                  14C _amsg_exit
                  13A _adjust_fdiv
                   91 __CppXcptFilter
                  1B0 _except_handler4_common
                  187 _crt_debugger_hook
                   B3 __clean_type_info_names_internal
                  473 _wassert
                  5A4 strcmp
                  57F memset
                  549 getenv
                  1C0 _fdopen
                  172 _close
                  380 _read
                  366 _open
                  4DC _write
                  12A _access
                  570 malloc
                  526 ferror

  Summary

        4000 .data
        1000 .idata
       D1000 .rdata
       2F000 .reloc
        1000 .rsrc
      1F3000 .text
       F8000 .textbss

=> if I understand u correctly, there should be MSVCR71.dll, but there is
MSVCR80D.dll... so where is the problem now?

As I already mentioned, it wont be a problem at all as the final program
runs under Linux. So if this leads to far and wastes too much of your time,
then I can understand if we just end it here. Just for curiosity I would
like to know why this happens.

Concerning the old libraries: I got some limitations from my customer which
library I have to take. In this case it is: HDF5 v1.6.4 (and I cant change
it).

Concerning VS2003: Curious, today I have read an article in an online
magazine that with an age of 35 you are already to old for the IT-business.
With my age of 40 I am a reptile, and I have to admit: they are right. I got
used to VS2003 and as a reptile I've got the right not to change my habit
:)))). I tried already VS2005 and I hate it => so no change :slight_smile: Wherever I
can I program with VS2003

So far - cheers :slight_smile:
Tom

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/memory-leaks-with-a-simple-open-close-tp4025625p4025647.html
Sent from the hdf-forum mailing list archive at Nabble.com.