Re: Issue with GM through JNI
Bob Friesenhahn <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 10 Jul 2017, Tianyu Lang wrote: > Hi GraphicsMagick masters, > > In my program I am using GM 1.3.26 through JNI (Java Native Interface). > Unfortunately, it seems initializing GM by calling " > InitializeMagick(nullptr)" will corrupt the heap (or stack) and crash my > Java program. I would suspect that "nullptr" is not the same as C standard NULL and perhaps it is a reference to some special Java/JNI object which makes not sense to C and it is being parsed like a C string. Does InitializeMagick(NULL); not compile sucessfully? The passed argument is mostly useful if the software is built without hard-coded paths to installed files and the operating system does not provide a way to obtain a path to the executable. What operating system are you using? Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot