| > Did you call the hts_init() function before any call to
the
> htslib functions?
For my JNI dll I used libtest\example.c code and replaced
main() with something like:
#include "httrack-library.h"
#include "example.h"
#include <jni.h>
JNIEXPORT jint JNICALL
Java_JavaGUI_HTTrackJNI__1StartParsing
(JNIEnv *pEnv, jobject obj)
{
hts_init();
htswrap_add("init",httrack_wrapper_init);
htswrap_add("free",httrack_wrapper_uninit);
.....
.....
When I step into hts_init() it will initialize zlib, ssl
etc. and then call void* structcheck_init(int init) function
where it crashes on NOSTATIC_RESERVE
| |