> JNIEXPORT void JNICALL
> Java_Jhworld_callRoot (JNIEnv, jobject){
>
> extern void InitGui();
> VoidFuncPtr_t initfuncs[] = { InitGui, 0 };
>
> TROOT root("hello","Hello World", initfuncs);
Could you put the <TROOT root> object into the global scope and see
whether it helps.
TROOT root("hello","Hello World", initfuncs);
JNIEXPORT void JNICALL Java_Jhworld_callRoot (JNIEnv, jobject)
{
extern void InitGui();
VoidFuncPtr_t initfuncs[] = { InitGui, 0 };
. . .
}
or
TROOT *root = new TROOT("hello","Hello World", initfuncs);
JNIEXPORT void JNICALL Java_Jhworld_callRoot (JNIEnv, jobject)
{
extern void InitGui();
VoidFuncPtr_t initfuncs[] = { InitGui, 0 };
. . .
}
Valery
=================================================================
Dr. Valeri Faine (Fine)
------------------- Phone: +1 516 344 7806
Brookhaven National Laboratory FAX : +1 516 344 4206
Bldg. 510A /STAR mailto:fine@bnl.gov
Upton, New York, 11973-5000 http://nicewww.cern.ch/~fine
USA
Dr. Valery Fine Telex : 911621 dubna su
-----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region Fax : +7 09621 6 51 45
Russia mailto:fine@main1.jinr.dubna.su