That makes sense..haven't found it yet tho...is that a change you know of between 1,2 and 2.0 or just an experience you've had... I want to nail this down for good.
-----Original Message----- From: "Zac Spitzer" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" <[email protected]> Sent: 5/6/08 8:35 PM Subject: Re: [mapguide-users] Problems with featureservice.UpdateFeatures you have previously opened a feature reader and not closed it On Wed, May 7, 2008 at 4:01 AM, Scott Hameister <[EMAIL PROTECTED]> wrote: > > > > > I created a buffer tool in 1.2 that let you create a new buffer and type in > the name of the layer you wanted it on. > > I would then check to see if the layer already existed then delete out any > objects inside to clean it out before adding to it. > > > > The codes still works fine in 1.2 but in 2.0 I get this Error > > Please Try your Operation Later Resource was busy Sesion:134 . > > > > I'm working in Coldfusion, but the code should translate fairly well! The > crash Point is at featureSrvc.UpdateFeatures. > > > > <cfset deleteCmd = CreateObject("java", > "org.osgeo.mapguide.MgDeleteFeatures").init(featureName, "ID >= 0")> > > <cfset commands = CreateObject("java", > "org.osgeo.mapguide.MgFeatureCommandCollection")> > > <cfset commands.Add(deleteCmd)> > > <cfset featureSrvc.UpdateFeatures(dataSourceId, commands, > false)> > > <cfset commands.delete()> > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
