id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 5571,OGR Driver GML : bug with gmlReader multiple instanciation/deletion ( using xerces),ibibah,warmerdam,"there is a bug in the gmlReader object here: {{{ 209 if( m_nInstanceCount == 0 && m_bXercesInitialized > 0 ) 210 { 211 XMLPlatformUtils::Terminate(); 212 m_bXercesInitialized = FALSE; <----- here 213 } }}} he's using two global variables to manage xerces initialisation. If, in one session, you're allocate a object , delete them, and reallocate another, '''m_bXercesInitialized = FALSE''' instead of '''-1''' like the global initialisation. This result in a crash when whe call '''NextFeatureXerces()''' because, '''SetupParser()''' and then '''SetupParserXerces()''' doesn't allocate the reader and '''m_poSAXReader == NULL''' in the code below : {{{ 555 while( m_poCompleteFeature == NULL 556 && !m_bStopParsing 557 && m_poSAXReader->parseNext( m_oToFill ) ) {} }}} The correction is : {{{ 209 if( m_nInstanceCount == 0 && m_bXercesInitialized > 0 ) 210 { 211 XMLPlatformUtils::Terminate(); 212 m_bXercesInitialized = -1; <----- correction 213 } }}} Please correct this. thanks.",defect,closed,normal,1.11.1,default,1.11.0,major,fixed,"Driver,GML,xerces",