[fdo-trac] #251: Visual C++ 2005 runtime error when attempting to
create connection
FDO
trac_fdo at osgeo.org
Wed Jan 30 19:36:30 EST 2008
#251: Visual C++ 2005 runtime error when attempting to create connection
----------------------------+-----------------------------------------------
Reporter: jng | Owner: traianstanev
Type: defect | Status: new
Priority: critical | Milestone: 3.3.0
Component: OGR Provider | Version: 3.3.0
Severity: 1 | Keywords: ogr runtime error
External_id: |
----------------------------+-----------------------------------------------
I get a Visual C++ 2005 runtime error when attempting to call
IConnectionManager::CreateConnection() with the OGR provider.
The error message I get is:
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: [path to executable]
R6034
An Application has made an attempt to load the C runtime library
incorrectly.
Please contact the application's support team for more information.
If I run this through the vs debugger, I get an unhandled
OSGeo.FDO.Common.Exception with the following message.
"Unable to load the FDO Provider: A dynamic link library (DLL)
initialization routine failed."
I've tried the calls in both C# and C++, and both trigger the same error.
The relevant pieces of code are:
C#:
IConnectionManager connMgr = FeatureAccessManager.GetConnectionManager();
IConnection conn = connMgr.CreateConnection("OSGeo.OGR.3.3");
C++:
FdoPtr<IConnectionManager> connMgr =
FdoFeatureAccessManager::GetConnectionManager();
FdoPtr<FdoIConnection> conn =
connMgr->CreateConnection(_T("OSGeo.OGR.3.3"));
Both fragments never get past CreateConnection()
I was using FDO 3.3.0 RC1 (from binary sdk and source) with the VC++ 2005
SP1 runtime installed.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/251>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list