Project

Profile

Help

Revision e08fc1ec

Added by O'Neil Delpratt over 5 years ago

SAxon/C update

View differences:

latest9.6/hec/Saxon.C.API/SaxonProcessor.cpp
136 136
    cwd="";
137 137
    licensei = l;
138 138
    versionStr = NULL;
139
    refCount++;
139
    SaxonProcessor::refCount++;
140 140

  
141 141

  
142
     if(jvmCreatedCPP == 0){
143
	jvmCreatedCPP=1;
142
     if(SaxonProcessor::jvmCreatedCPP == 0){
143
	SaxonProcessor::jvmCreatedCPP=1;
144 144
    SaxonProcessor::sxn_environ= new sxnc_environment;//(sxnc_environment *)malloc(sizeof(sxnc_environment));
145 145

  
146 146

  
......
179 179
SaxonProcessor::SaxonProcessor(const char * configFile){
180 180
    cwd="";
181 181
    versionStr = NULL;
182
    refCount++;
182
    SaxonProcessor::refCount++;
183 183

  
184
    if(jvmCreatedCPP == 0){
185
	jvmCreatedCPP=1;
184
    if(SaxonProcessor::jvmCreatedCPP == 0){
185
	SaxonProcessor::jvmCreatedCPP=1;
186 186
    //SaxonProcessor::sxn_environ= new sxnc_environment;
187 187
	SaxonProcessor::sxn_environ= (sxnc_environment *)malloc(sizeof(sxnc_environment));
188 188

  
......
232 232
	if(versionStr != NULL) {
233 233
		delete versionStr;
234 234
	}
235
	refCount--;	//This might be redundant due to the bug fix 2670
235
	SaxonProcessor::refCount--;	//This might be redundant due to the bug fix 2670
236 236
   }
237 237

  
238 238

  
......
458 458

  
459 459

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

  
464 464
 		finalizeJavaRT (SaxonProcessor::sxn_environ->jvm);
465 465

  

Also available in: Unified diff