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

Definition at line 909 of file dim_jni.c.

References dim_jni_attachThread(), NativeDimSrvError_errorHandler, ourNativeDimSrvError, and theJavaVM.

Referenced by server_error_callback().

910 {
911  JNIEnv* env;
912  int doit;
913 
914  doit = dim_jni_attachThread(&env);
915 // (*theJavaVM)->AttachCurrentThread(theJavaVM, (void *)&env, NULL);
916  (*env)->CallVoidMethod(env, ourNativeDimSrvError, NativeDimSrvError_errorHandler,
917  (jint)severity, (jint)code, (jstring)(*env)->NewStringUTF(env, msg));
918  if(doit)
919  (*theJavaVM)->DetachCurrentThread(theJavaVM);
920  return;
921 }
JavaVM * theJavaVM
Definition: dim_jni.c:85
jobject ourNativeDimSrvError
Definition: dim_jni.c:120
int dim_jni_attachThread(JNIEnv **env)
Definition: dim_jni.c:171
jmethodID NativeDimSrvError_errorHandler
Definition: dim_jni.c:118

+ Here is the call graph for this function:

+ Here is the caller graph for this function: