InitializeMagick() requirement

Bob Friesenhahn <[email protected]> Tue, 26 Jan 2010 18:32:19 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.announce
Message-ID <[email protected]>
This email only applies to those using the GraphicsMagick C or C++ 
APIs.  Command line utility, PerlMagick, and TclMagick users should 
feel free to ignore this.

As of the GraphicsMagick 1.3.8 release, it is absolutely required to 
invoke the InitializeMagick() function before using the C or C++ APIs. 
This function has always been part of GraphicsMagick (and recommended 
to be used) but it was often believed to not be necessary since the 
library usually worked without invoking it.  This absolute requirement 
is now imposed in order to improve thread safety and efficiency.

Failure to invoke InitializeMagick() will surely lead to either a 
thrown assertion (if assertions are enabled) or an immediate crash.

InitializeMagick() may be invoked any number of times so if you are 
not sure if the library is initialized, then simply invoke it again.

If you are responsible for updating GraphicsMagick, please make sure 
that any programs or libraries using the GraphicsMagick APIs are 
invoking InitializeMagick().

Thanks,

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com