HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: HTTrack crashes when used in JNI
Author: Michael Paitl
Date: 04/02/2003 17:46
 
> 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






 
Reply Create subthread


All articles

Subject Author Date
HTTrack crashes when used in JNI

04/02/2003 05:31
Re: HTTrack crashes when used in JNI

04/02/2003 07:06
Re: HTTrack crashes when used in JNI

04/02/2003 17:46
Re: HTTrack crashes when used in JNI

04/08/2003 23:33




1

Created with FORUM 2.0.11