c++ - Can i call multiple times JNI_CreateJavaVM? -
I am trying to call two threads witch "DispFrontEnd" function first thread ended, failing to start another JVM Stayed .. ?? tks #include "jni.h" #include & lt; Process.h & gt; #include "Stdafx.h" // DISPATCH check the check bool DispatchThreadCreated = FALSE; If (Dispatchart cutted == wrong) {Handle HD spread; HDispThread = (handle) _biginthread (DispFrontEnd, 0, (zero *) transmission input); If ((long) HDIPPathread == -1) {log.LogError ("Thread Disp frontend returns ******** bg", (long) hdpritread); Log.LogError ("errno", errno); Log.LogError ("_ doserrno", _doserrno); } And {logloc-> LogMethod ("Dispatch Thread Created"); DispatchThreadCreated = TRUE; // aspara que a thread terminal WaitForSingleObject (hDispThread, INFINITE); DispatchThreadCreated = FALSE; // 01_02_2010 logloc-> LogMethod ("Dispatch thread ENDED"); }} If (DispatchtraredCrited == incorrect) {Handle HD Spreadread 3; ...