Search found 6 matches

by fuzion
2014-12-18T11:43:38-07:00
Forum: Magick++
Topic: What is the proper way to uninitialize ImageMagick with Magick++?
Replies: 7
Views: 17437

Re: What is the proper way to uninitialize ImageMagick with Magick++?

I just installed ImageMagick 6.9.0.0 (the latest available stable version on Gentoo). I am using Valgrind version 3.10.1 (the latest available stable version on Gentoo). Here is the test program that I am using, based on the API documentation for Image: #include <Magick++.h> #include <iostream> usin...
by fuzion
2014-12-18T11:16:28-07:00
Forum: Magick++
Topic: What is the proper way to uninitialize ImageMagick with Magick++?
Replies: 7
Views: 17437

Re: What is the proper way to uninitialize ImageMagick with Magick++?

Sorry, I should have posted what version I'm using. I'm' using Gentoo and currently have version 6.8.9.7 installed.

I just tried the first example in the documentation/API and it gives me memory leaks as well.

Code: Select all

http://www.imagemagick.org/Magick++/Image.html
by fuzion
2014-12-18T11:14:47-07:00
Forum: Magick++
Topic: What is the proper way to uninitialize ImageMagick with Magick++?
Replies: 7
Views: 17437

Re: What is the proper way to uninitialize ImageMagick with Magick++?

Unfortunately, having the main function return instead of calling exit in the signal handler didn't help. In fact it got worse. Now there's 3,306 bytes still reachable.
by fuzion
2014-12-18T09:18:02-07:00
Forum: Magick++
Topic: What is the proper way to uninitialize ImageMagick with Magick++?
Replies: 7
Views: 17437

Re: What is the proper way to uninitialize ImageMagick with Magick++?

Unfortunately it wouldn't compile: main.cpp: In function 'void exitDataStoreNode(int, siginfo_t*, void*)': main.cpp:214:18: error: 'TerminateMagick' was not declared in this scope TerminateMagick(); // Note: If I comment out TerminateMagick(); it compiles just fine, with InitializeMagick(*argv); So ...
by fuzion
2014-12-18T08:54:52-07:00
Forum: Magick++
Topic: What is the proper way to uninitialize ImageMagick with Magick++?
Replies: 7
Views: 17437

Re: What is the proper way to uninitialize ImageMagick with Magick++?

I'll give TerminateMagick a try next. I just tried (prior to seeing your response) using the following: #include <magick/MagickCore.h> // ... MagickCore::MagickCoreTerminus(); // before process exits // ... MagickCoreGenesis(*argv, MagickTrue); // in main after process starts When I do this, I get t...
by fuzion
2014-12-05T08:34:01-07:00
Forum: Magick++
Topic: What is the proper way to uninitialize ImageMagick with Magick++?
Replies: 7
Views: 17437

What is the proper way to uninitialize ImageMagick with Magick++?

Hello, This is my first time post to this forum and I am a beginner ImageMagick/Magick++ user. I searched the forum for "InitializeMagick" and it found only one post at this time (that did not answer my question). I am using Magick++ in a C++ program successfully to resize images. I am cur...