Project

Profile

Help

Revision 6304fb8b

Added by O'Neil Delpratt 5 months ago

Saxon/C bug fixes and development work

View differences:

latest10/hec/Saxon.C.API/SaxonCProcessor.c
184 184

  
185 185
	
186 186
      if(result) {
187
        const char * str = (*(environi.env))->GetStringUTFChars(environi.env, result, NULL);    
187
        const char * str = (*(environi.env))->GetStringUTFChars(environi.env, result, NULL);
188 188
	return str;
189 189
     }
190 190

  
......
201 201
		cpp = (jobject) createSaxonProcessor (environi.env, cppClass, "(Z)V", NULL, (jboolean)sxn_license);
202 202
	}
203 203
 	
204
	if(queryFileID == NULL) {	
204
	if(queryFileID == NULL) {
205 205
		queryFileID = (jmethodID)(*(environi.env))->GetMethodID (environi.env, cppClass,"executeQueryToFile", "(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/Object;)V");
206 206
 		if (!queryFileID) {
207 207
        		printf("Error: MyClassInDll. executeQueryToString not found\n");
......
242 242
	   
243 243
	}
244 244
	}
245
      (*(environi.env))->CallVoidMethod(environi.env,cpp, queryFileID, (cwd== NULL ? (*(environi.env))->NewStringUTF(environi.env, "") : (*(environi.env))->NewStringUTF(environi.env, cwd)), (*(environi.env))->NewStringUTF(environi.env, outputfile), stringArray, objectArray );    
245
      (*(environi.env))->CallVoidMethod(environi.env,cpp, queryFileID, (cwd== NULL ? (*(environi.env))->NewStringUTF(environi.env, "") : (*(environi.env))->NewStringUTF(environi.env, cwd)), (*(environi.env))->NewStringUTF(environi.env, outputfile), stringArray, objectArray );
246 246
	  (*(environi.env))->DeleteLocalRef(environi.env, objectArray);
247 247
	  (*(environi.env))->DeleteLocalRef(environi.env, stringArray);
248 248

  

Also available in: Unified diff