Project

Profile

Help

Revision 1117bc69

Added by O'Neil Delpratt almost 2 years ago

Saxon/C Development - Multithreading feature

View differences:

latest9.9/hec/Saxon.C.API/SaxonProcessor.cpp
495 495

  
496 496
const char * SaxonProcessor::version() {
497 497
     if(versionStr == NULL) {
498
std::cerr<<"versionStr is null"<<std::endl;
498

  
499 499
     	static jmethodID MID_version = (jmethodID)SaxonProcessor::sxn_environ->env->GetStaticMethodID(saxonCAPIClass, "getProductVersion", "(Lnet/sf/saxon/s9api/Processor;)Ljava/lang/String;");
500 500
    	if (!MID_version) {
501 501
        	std::cerr<<"\nError: MyClassInDll "<<"SaxonCAPI.getProductVersion()"<<" not found"<<std::endl;
......
510 510
         delete tempVersionStr;
511 511

  
512 512
    }
513
std::cerr<<"versionStr is not null"<<std::endl;
513

  
514 514
    return versionStr;
515 515
}
516 516

  
......
696 696
void SaxonProcessor::release(){
697 697
 	if(SaxonProcessor::jvmCreatedCPP!=0) {
698 698
		SaxonProcessor::jvmCreatedCPP =0; 
699
		std::cerr<<"SaxonProc: JVM finalized calling !"<<std::endl;
699
		//std::cerr<<"SaxonProc: JVM finalized calling !"<<std::endl;
700 700
 		finalizeJavaRT (SaxonProcessor::sxn_environ->jvm);
701 701
 		
702
		delete SaxonProcessor::sxn_environ;
702
		//delete SaxonProcessor::sxn_environ;
703 703
	/*clearParameters();
704 704
	clearProperties();*/
705 705
} else {

Also available in: Unified diff