[mapguide-trac] #210: FeatureService: Does not release provider
after GetSchemaMapping
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Jun 14 16:54:48 EDT 2007
#210: FeatureService: Does not release provider after GetSchemaMapping
-------------------------------+--------------------------------------------
Reporter: jbirch | Owner:
Type: defect | Status: new
Priority: medium | Milestone: 1.2
Component: Feature Service | Version: 1.2.0
Severity: major | Keywords:
External_id: |
-------------------------------+--------------------------------------------
Basically, if I try to MgFeatureService->GetSchemaMapping on the GDAL
provider, it holds the connection open. There doesn't seem to be a
Close() or Destroy() method on the SiteConnection or the FeatureService.
Don't know what else I would have to do here...
I have only been able to test this with the GDAL provider, because it's
the only single-threaded one.
{{{
<?php
include "C:/Program
Files/MapGuideOpenSource/WebServerExtensions/www/mapviewerphp/constants.php";
MgInitializeWebTier('C:/Program
Files/MapGuideOpenSource/WebServerExtensions/www/webconfig.ini');
$user = new MgUserInformation("Administrator","admin");
$siteConnection = new MgSiteConnection();
$siteConnection->Open($user);
$featureService =
$siteConnection->CreateService(MgServiceType::FeatureService);
print
($featureService->GetSchemaMapping("OSGeo.Gdal.3.2","DefaultRasterFileLocation=C:/RasterTest/nanaimo_small/")->ToString());
?>
}}}
If I run this script once, I get an XML document back. If I run it a
second time, it times out, and the server issues the message:
{{{
(968|3952) Cannot create any more connections to the OSGeo.Gdal FDO
provider.
Exception occurred in method MgFdoConnectionManager.Open at line 365 in
file c:\
build_bond_area\mapguide_open_source_v1.2\build_17.4\mgdev\server\src\common\man
ager\FdoConnectionManager.cpp
}}}
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/210>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list