Can't free memory allocated in a C DLL?
Johannes Pfau
spam at example.com
Fri Aug 5 10:44:54 PDT 2011
Kagamin wrote:
>Johannes Pfau Wrote:
>
>> This is a reduced problem encountered with DTagLib on windows:
>> TagLib allocates memory using malloc in a DLL compiled with MSVC (or
>> mingw). When I try to free this memory in D the free() call just
>> freezes infinitely. Here's the reduced test case:
>> http://dl.dropbox.com/u/24218791/d/BUG.zip
>
>You can also try to free it from the default process heap.
Thanks,
the taglib_free function has already been merged into the official
taglib git (that was quite fast ;-)) so the problem's solved.
But out of curiosity:
>You can also try to free it from the default process heap.
How is that done? GlobalFree?
--
Johannes Pfau
More information about the Digitalmars-d
mailing list