[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changes in GraphicsMagick-1.3.8
From: |
Benjamin Lindner |
Subject: |
Re: Changes in GraphicsMagick-1.3.8 |
Date: |
Thu, 28 Jan 2010 08:41:50 +0100 |
> Hi,
> testing GM 1.3.8 versus previous 1.3.7 with octave 3.2.4,
> I discovered that from this version:
>
> "The InitializeMagick() function MUST be invoked before constructing any
> Magick++ objects".
>
> http://www.graphicsmagick.org/Magick++/index.html
> http://www.graphicsmagick.org/api/api.html
>
> Otherwise a nice crash will happen.
>
> As I see no InitializeMagick call also in the hg source,
> Where is the best place to put this call within __magick_read__.cc ?
If you build a Windows DLL, then InitializeMagick() is automatically
called within the DllMain() function when the library is loaded
the first time.
Take a look at the source code in magick/nt_base.c
I don't know what will happen if you call it more than once, though.
benjamin
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser