FACT++  1.0
void callClientErrorHandler ( int  severity,
int  code,
char *  msg 
)

Definition at line 930 of file dim_jni.c.

References dim_jni_attachThread(), NativeDimCltError_errorHandler, ourNativeDimCltError, and theJavaVM.

Referenced by client_error_callback().

931 {
932  JNIEnv* env;
933  int doit;
934 
935  doit = dim_jni_attachThread(&env);
936 // (*theJavaVM)->AttachCurrentThread(theJavaVM, (void *)&env, NULL);
937  (*env)->CallVoidMethod(env, ourNativeDimCltError, NativeDimCltError_errorHandler,
938  (jint)severity, (jint)code, (jstring)(*env)->NewStringUTF(env, msg));
939  if(doit)
940  (*theJavaVM)->DetachCurrentThread(theJavaVM);
941  return;
942 }
JavaVM * theJavaVM
Definition: dim_jni.c:85
jobject ourNativeDimCltError
Definition: dim_jni.c:125
jmethodID NativeDimCltError_errorHandler
Definition: dim_jni.c:123
int dim_jni_attachThread(JNIEnv **env)
Definition: dim_jni.c:171

+ Here is the call graph for this function:

+ Here is the caller graph for this function: