Project

Profile

Help

Revision 0608038f

Added by O'Neil Delpratt over 5 years ago

Bug fix relating to issue 2772

View differences:

latest9.6/hec/Saxon.C.API/SaxonProcessor.cpp
28 28

  
29 29
//jobject cpp;
30 30
const char * failure;
31
sxnc_environment * SaxonProcessor::environ = 0;
32
int SaxonProcessor::refCount = 0;
33
int SaxonProcessor::jvmCreatedCPP=0;
31
sxnc_environment * environ = 0;
32
int refCount = 0;
33
int jvmCreatedCPP=0;
34 34

  
35 35
bool SaxonProcessor::exceptionOccurred(){
36 36
	return environ->env->ExceptionCheck();
......
232 232
	if(versionStr != NULL) {
233 233
		delete versionStr;
234 234
	}
235
	refCount--;	//The might be redundant due to the bug fix 2670
235
	refCount--;	//This might be redundant due to the bug fix 2670
236 236
   }
237 237

  
238 238

  
......
278 278
	saxonCAPIClass = other.saxonCAPIClass;
279 279
	cwd = other.cwd;
280 280
	proc = other.proc;
281
	environ = other.environ;
281
	//environ = other.environ;
282 282
	parameters = other.parameters;
283 283
	configProperties = other.configProperties;
284 284
	licensei = other.licensei;
......
457 457

  
458 458

  
459 459
void SaxonProcessor::release(){
460
	if(SaxonProcessor::jvmCreatedCPP!=0) {
461
		SaxonProcessor::jvmCreatedCPP =0;
460
	if(jvmCreatedCPP!=0) {
461
		jvmCreatedCPP =0;
462 462

  
463
 		finalizeJavaRT (SaxonProcessor::environ->jvm);
463
 		finalizeJavaRT (environ->jvm);
464 464

  
465 465
		//delete environ ;
466 466
	/*clearParameters();

Also available in: Unified diff