Skip to content

Commit

Permalink
Call MagickCoreGenesis on Posix as a possible fix for issue #7.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeWey committed Jun 17, 2012
1 parent f003374 commit 53ce20f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dmagick/Image.d
Expand Up @@ -4383,3 +4383,19 @@ class Image
assert( storage == StorageType.IntegerPixel );
}
}

/*
* Initialize ImageMagick, causes an access violation on Windows.
*/
version (Posix)
{
shared static this()
{
MagickCoreGenesis(toStringz(Runtime.args[0]) , false);
}

shared static ~this()
{
MagickCoreTerminus();
}
}

0 comments on commit 53ce20f

Please sign in to comment.