Opened 17 years ago
Closed 17 years ago
#210 closed defect (duplicate)
FeatureService: Does not release provider after GetSchemaMapping
Reported by: | jbirch | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Feature Service | Version: | 1.2.0 |
Severity: | major | Keywords: | |
Cc: | External ID: | 944860 |
Description
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
Change History (3)
comment:1 by , 17 years ago
External ID: | → 944860 |
---|
comment:2 by , 17 years ago
Milestone: | 1.2 |
---|
comment:3 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This was addressed with the submission for trac ticket #178. http://trac.osgeo.org/mapguide/ticket/178
Schema mapping is useful for creating a default configuration document for a resource. Will need to manually create it until this is resolved.