1 Replies Last post: Jun 14, 2006 12:10 PM by Igor Novikov  
Barrie Selack   2 posts since
Apr 24, 2006
Currently Being Moderated

Jun 13, 2006 4:26 AM

JNIWrapper with ImageMagick

I'm trying to get ImageMagick working under JNIWrapper, however I don't know how to debug what it is I am doing wrong. The message I get is:

 

magick/constitute.c:329: failed assertion `image_info->signature == MagickSignature'

 

Which I understand to mean that my structure doesn't match the structure of image_info. But I have no idea if it's a really in image_info, or in one of the structures inside of image_info (there are several). Any ideas on how to get past this?

 

I'd also like to see more example code or largers non-operating system libraries. For example in image_info the is a FILE * which I don't know how to map in the structure.. I used a Pointer for now.. at least until I can get past the assert.

 

Any help/ideas?

 

Thanks,

Barrie

Igor Novikov TeamDev Ltd. 224 posts since
Apr 24, 2006
Currently Being Moderated
1. Jun 14, 2006 12:10 PM in response to: Barrie Selack
Re: JNIWrapper with ImageMagick

Hi Barrie

 

You can trying to generate code for image_info structure using our Code Generator for JNIWrapper. This utility allows to simplify such tasks.

 

For more information about the Code Generator read: http://www.teamdev.com/downloads/jniwrapper/docs/JNIWrapper-PGuide.html#Code_Generation_Utility

 

Please try this and let us know the results.

 

Sincerely,

 

Igor Novikov

 

Message was edited by: Administrator

More Like This

  • Retrieving data ...