Re: Load SVG from String

Bob Friesenhahn <[email protected]> Fri, 4 Mar 2005 11:45:51 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Fri, 4 Mar 2005, Achim Domma (Procoders) wrote:

> I have the following problem:
>
> GM is compiled into a COM object. The code from DllMain is called once 
> without any problems. The first instance of the COM object creates an 
> instance of Magick::Image and releaes it. A second instance is created, which 
> again creates an instance of Magick::Image. But if this Image is to be 
> deleted there seems to be some kind of deadlock. The debugger can not step 
> into the dtor. Don't know why.

I don't have time to look at this at the moment.  Take a look at the 
bottom of Magick++/lib/Image.cpp and try changing

void Magick::MagickPlusPlusDestroyMagick(void)
{
   if (magick_initialized)
     {
       magick_initialized=false;
       MagickLib::DestroyMagick();
     }
}

to

void Magick::MagickPlusPlusDestroyMagick(void)
{
   if (magick_initialized)
     {
       magick_initialized=false;
       // MagickLib::DestroyMagick();
     }
}

Maybe the deadlock will then go away.

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click