Project

Profile

Help

Maintenance. Planio will be undergoing a scheduled maintenance this weekend. Between Saturday, July 24 at 9:00 UTC and Sunday, July 25, 22:00 UTC your account might observe occasional downtimes which may last up to several minutes in some cases.

Revision 7728ae0b

Added by O'Neil Delpratt 5 months ago

Saxon/C development

View differences:

src/main/c/Saxon.C.API/SaxonProcessor.cpp
47 47
    std::free(ptr);
48 48
}
49 49

  
50
void operator delete(void*, std::size_t) noexcept {
51
    auto ind= std::distance(myAlloc.begin(),std::find(myAlloc.begin(), myAlloc.end(),ptr));
52
    myAlloc[ind]= nullptr;
53
    std::free(ptr);
54

  
55
}
56

  
50 57
#define new new(__FILE__, __LINE__)
51 58

  
52 59
void SaxonProcessor::getInfo(){
src/main/c/Saxon.C.API/SaxonProcessor.h
65 65

  
66 66
void operator delete(void* ptr) noexcept;
67 67

  
68
void operator delete(void*, std::size_t) noexcept;
69

  
68 70
#endif
69 71

  
70 72

  
src/main/c/Saxon.C.API/XQueryProcessor.cpp
260 260

  
261 261
	jmethodID mID = (jmethodID)SaxonProcessor::sxn_environ->env->GetMethodID (cppClass,"executeQueryToFile", "(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/Object;)V");
262 262
 	if (!mID) {
263
        std::cerr<<"Error: "<<getDllname<<".executeQueryToFile"<<" not found\n"<<std::endl;
263
        std::cerr<<"Error: "<<getDllname()<<".executeQueryToFile"<<" not found\n"<<std::endl;
264 264
    } else {
265 265
        if(cppXQ == nullptr) {
266 266
#if defined(DEBUG)

Also available in: Unified diff