Memory leaks with Visual Studio 6

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Peter Langer

Memory leaks with Visual Studio 6

Post by Peter Langer »

Hello together,
i have translated all ImageMagick++ dlls with VS 6 and use them in my program.
When i start and end my program without doing anything with images (only the dll's are loaded)
within the visual studio debugger there are many memory leaks detected/listed.

I am using the version 6.3.7-2 of ImageMagick.

The start of the listing (the complete list contains about 170 entries) is :

F:\temp\ImageMagick-6.3.7\magick\semaphore.c(179) : {4622} normal block at 0x013761A8, 36 bytes long.
Data: <x© ÿÿÿÿ > 78 A9 14 00 FF FF FF FF 00 00 00 00 00 00 00 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4304} normal block at 0x013ABAA0, 8 bytes long.
Data: <P¹: > 50 B9 3A 01 00 00 00 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4303} normal block at 0x013ABA58, 4 bytes long.
Data: <wmf > 77 6D 66 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4302} normal block at 0x013ABA00, 23 bytes long.
Data: <"wmf2eps" -o "%o> 22 77 6D 66 32 65 70 73 22 20 2D 6F 20 22 25 6F
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4301} normal block at 0x013AB9B8, 9 bytes long.
Data: <built-in > 62 75 69 6C 74 2D 69 6E 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4300} normal block at 0x013AB950, 44 bytes long.
Data: <¸¹: Xº: º: > B8 B9 3A 01 58 BA 3A 01 00 00 00 00 00 BA 3A 01
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4299} normal block at 0x013AB908, 8 bytes long.
Data: <x·: | º: > 78 B7 3A 01 A0 BA 3A 01
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4298} normal block at 0x013AB8C0, 4 bytes long.
Data: <win > 77 69 6E 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4297} normal block at 0x013AB828, 89 bytes long.
Data: <"/usr/local/bin/> 22 2F 75 73 72 2F 6C 6F 63 61 6C 2F 62 69 6E 2F
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4296} normal block at 0x013AB7E0, 9 bytes long.
Data: <built-in > 62 75 69 6C 74 2D 69 6E 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4295} normal block at 0x013AB778, 44 bytes long.
Data: <à·: À¸: (¸: > E0 B7 3A 01 00 00 00 00 C0 B8 3A 01 28 B8 3A 01
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4294} normal block at 0x013AB730, 8 bytes long.
Data: < µ: ¹: > 98 B5 3A 01 08 B9 3A 01
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4293} normal block at 0x013AB6E8, 3 bytes long.
Data: <ps > 70 73 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4292} normal block at 0x013AB6A0, 4 bytes long.
Data: <txt > 74 78 74 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4291} normal block at 0x013AB648, 24 bytes long.
Data: <"enscript" -o "%> 22 65 6E 73 63 72 69 70 74 22 20 2D 6F 20 22 25
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4290} normal block at 0x013AB600, 9 bytes long.
Data: <built-in > 62 75 69 6C 74 2D 69 6E 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4289} normal block at 0x013AB598, 44 bytes long.
Data: < ¶: | ¶: è¶: H¶: > 00 B6 3A 01 A0 B6 3A 01 E8 B6 3A 01 48 B6 3A 01
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4288} normal block at 0x013AB550, 8 bytes long.
Data: < ´: 0·: > 00 B4 3A 01 30 B7 3A 01
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4287} normal block at 0x013AB508, 4 bytes long.
Data: <svg > 73 76 67 00
F:\temp\ImageMagick-6.3.7\magick\memory.c(321) : {4286} normal block at 0x013AB4B0, 23 bytes long.
Data: <"wmf2eps" -o "%o> 22 77 6D 66 32 65 70 73 22 20 2D 6F 20 22 25 6F

Does any one know how i can solve the problem?
(Some of the memory alloctions seems to be done when parsing some xml files)

With many thanks in advance,
Peter.
Post Reply