[mapguide-trac] #174: Race condition on successive feature readers

MapGuide Open Source trac_mapguide at osgeo.org
Fri May 25 10:33:50 EDT 2007


#174: Race condition on successive feature readers
-------------------------+--------------------------------------------------
   Reporter:  ksgeograf  |       Owner:                        
       Type:  defect     |      Status:  new                   
   Priority:  medium     |   Milestone:  1.2                   
  Component:  Server     |     Version:  1.2.0                 
   Severity:  major      |    Keywords:  MgFeatureReader C# API
External_id:             |  
-------------------------+--------------------------------------------------
 The following code will crash the server:

 {{{
 foreach(MgLayerBase l in map.GetLayers())
 {
   MgFeatureReader rd = ftr.SelectFeatures(new
 MgResourceIdentifier(l.GetFeatureSourceId()), l.GetFeatureClassName(),
 qry);

   while (rd.ReadNext())
   {
      ... read some feature attributes ...
   }
 }
 }}}

 If I insert a "Sleep(5000);" before the select everything works fine (and
 slow :D).

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/174>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list