Project

Profile

Help

Revision af4371f2

Added by O'Neil Delpratt 8 months ago

Saxon/C development - more bug fixes

View differences:

src/main/c/Saxon.C.API/SaxonProcessor.cpp
112 112
    if(exceptionOccurred()) {
113 113
        SaxonProcessor::sxn_environ->env->ExceptionClear();
114 114
    }
115
    std::cerr<< "saxonProc exceptionClear cp0"<<std::endl;
116 115
    if (exception != nullptr) {
117 116
        std::cerr<< "saxonProc exception= "<< exception <<std::endl;
118 117
        delete exception;
src/main/c/samples/cppTests/testValidator.cpp
33 33

  
34 34
	 XdmNode * input = processor->parseXmlFromString(doc1.c_str());
35 35

  
36
	 if(input == nullptr) {
37
	     if(val->exceptionOccurred()) {
38
	         
39

  
40
	     }
41
	     val->exceptionClear();
42
	     return;
43

  
44
	 }
45

  
36 46
	val->setSourceNode(input);
37 47

  
38 48
	
src/main/c/samples/cppTests/testXQuery.cpp
431 431
    delete processor;
432 432
    processor->release();
433 433

  
434
#ifdef MEM_DEBUG
435
    SaxonProcessor::getInfo();
436
#endif
437 434

  
438 435
    cout<<endl<<"======================== Test Results ========================"<<endl<<endl;
439 436

  

Also available in: Unified diff