Project

Profile

Help

Revision 0e42f323

Added by O'Neil Delpratt almost 6 years ago

Saxon/C updates

View differences:

latest9.6/hec/Saxon.C.API/SaxonCGlue.c
112 112
#else
113 113
    GetProcAddress (myDllHandle, "JNI_GetDefaultJavaVMInitArgs");
114 114
#endif
115

  
116
#ifdef DEBUG
117
    fprintf (stderr,"initJavaRT - check point 0\n");
118
#endif 
115
 
119 116
    
120 117
    JNI_CreateJavaVM_func =
121 118
    (jint (JNICALL *) (JavaVM **pvm, void **penv, void *args))
......
127 124
    
128 125
#endif
129 126

  
130
#ifdef DEBUG
131
    fprintf (stderr,"initJavaRT - check point 1\n");
132
#endif
133 127
    
134 128
    if(!JNI_GetDefaultJavaVMInitArgs_func) {
135 129
        fprintf (stderr,"%s doesn't contain public JNI_GetDefaultJavaVMInitArgs\n", getDllname());
......
149 143
        fprintf(stderr,"JNI_GetDefaultJavaVMInitArgs() failed with result\n");
150 144
        exit(1);
151 145
    }
152

  
153
#ifdef DEBUG
154
    fprintf (stderr,"initJavaRT - before JNI_CreateJavaVM_func\n");
155
#endif  
146
  
156 147
    /*
157 148
     * NOTE: no JVM is actually created
158 149
     * this call to JNI_CreateJavaVM is intended for JET RT initialization
......
163 154
        exit(1);
164 155
    }
165 156

  
166
#ifdef DEBUG
167
    fprintf (stderr, "JET RT initialized\n");
168
   fflush (stderr);
169
#endif
157

  
170 158
    fflush (stdout);
171 159
  } else {
172 160
#ifdef DEBUG
......
385 373
{
386 374

  
387 375
  if(jvmCreated!= 0){
388
    printf("\njvm is null\n");	
389 376
    (*jvm)->DestroyJavaVM (jvm);
390 377
    jvmCreated=0;	
391 378
  }

Also available in: Unified diff