Project

Profile

Help

Revision 85a9912e

Added by Dave Delpratt 5 months ago

Saxon/C Seg Error fixes

View differences:

src/main/c/Saxon.C.API/XdmItem.cpp
94 94

  
95 95
XdmItem::~XdmItem() {
96 96
    //decrementRefCount();
97
    std::cerr<<std::endl<<"XdmItem destructor called, refCount"<<getRefCount()<<std::endl;
97
    //std::cerr<<std::endl<<"XdmItem destructor called, refCount"<<getRefCount()<<std::endl;
98 98

  
99 99
    SaxonProcessor::sxn_environ->env->ExceptionDescribe();
100 100

  
101 101
    if(value !=nullptr && SaxonProcessor::jvmCreatedCPP>0) {
102
        std::cout << std::endl << "cpp0-1: DeleteGlobalRef" << std::endl;
103 102
        SaxonProcessor::sxn_environ->env->DeleteGlobalRef(value);
104 103
    }
105
    std::cout << std::endl << "cpp0-1" << std::endl;
106 104
    SaxonProcessor::sxn_environ->env->ExceptionDescribe();
107 105
    if(stringValue.empty()) {
108 106
        stringValue.clear();

Also available in: Unified diff