[mapguide-trac] #1119: MgSpatialContextReader shouldn't clear
internal data when close
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Oct 19 00:22:59 EDT 2009
#1119: MgSpatialContextReader shouldn't clear internal data when close
--------------------------+-------------------------------------------------
Reporter: christinebao | Owner: Christine Bao
Type: defect | Status: new
Priority: medium | Milestone: 2.2
Component: General | Version: 2.0.2
Severity: trivial | Resolution:
Keywords: | External_id: 1262439
--------------------------+-------------------------------------------------
Comment (by christinebao):
How to fix:
The architecture for the readers is suppose to be:[[BR]]
Get reader[[BR]]
Use reader[[BR]]
Close reader
As the reader is cached inside, the Close() function shouldn't clear the
internal data. Fixing is not to clear internal data when close:[[BR]]
{{{
void MgSpatialContextReader::Close()
{
}
MgSpatialContextReader::~MgSpatialContextReader()
{
m_spatialContextCol.Clear();
}
}}}
--
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/1119#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list