[fdo-internals] Hammerhead with FDO 3.2.x and fdopostgis
robert.fortin at autodesk.com
Wed Feb 7 08:46:09 EST 2007
I'm not sure that's the issue but it might be caused by the submission
from Romi which change Idisposable to have virtual functions. I believe
this is breaking binary compatibility and cause the problem you are
seeing with Hammerhead.
I would suggest that you rollback Romi's change in your environment and
recompile FDO + your provider.
Hope it helps.
From: fdo-internals-bounces at lists.osgeo.org
[mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Mateusz
Sent: Wednesday, February 07, 2007 5:13 AM
Subject: [fdo-internals] Hammerhead with FDO 3.2.x and fdopostgis
I'm having some strange problems with using FDO 3.2.x branch and my
fdopostgis provider, under Map 3D Hammerhead.
I'm using FDO 3.2.x from following branch:
The fdopostgis provider builds against 3.2.x without problems.
Also, simple tests of load/connect/disconnect work well.
Now, I'm trying to check it with Map 3D Hammerhead and
I'm encountering two problems:
1) The provider (PostGisProvider.dll) can be loaded, but no entry point
seems to be found. Here is screenshot with some details (marked with red
lines) that I managed to get under debugger attached to acad.exe:
I suppose the "Entry point not found" message is telling me that address
of the CreateConnection() call exported from PostGisProvider.dll can not
be found. Second, I have some logging action inside my
CreateConnection() but it's not executed.
I've made some diagnostics of my PostGisProvider.dll and I'm pretty sure
it's well baked well, because:
a) dumpbin.exe /exports PostGisProvider.dll lists exported
1 17 0004717C CreateConnection = @ILT+375(_CreateConnection)
b) Simple test using command line program does work well.
I can step all calls and everything works:
-- LoadLibrary - OK
-- GetProcAddress of CreateConnection() from PostGisProvider.dll - OK
--- call PostGisProvider.dll::CreateConnection() - OK
---- I get valid pointer to FdoIConnection interface
----- I can use the pointer to connect with PostGIS datastore
std::wstring provider(L"OSGeo.PostGIS.3.2"); std::wstring
mgr = FdoFeatureAccessManager::GetConnectionManager();
conn = mgr->CreateConnection(provider.c_str());
FdoConnectionState state = conn->Open();
Summarizing, from a) and b) I assume the fdopostgis interface is
obtainable and usable.
2) Second problem is related to FDO 3.2.x.
As I understand and got confirmation from Bob, the Hammerhead works with
FDO 3.2.x, so I tried to replace original Hammerhead libraries with my
homebaked from the 3.2.x branch:
FDO.dll, FDOCommon.dll, FDOGeometry.dll and FDOSpatial.dll
Unfortunately, just after Hammerhead starts, I got something like this:
Also, I can not access File -> Data Connect options
Does anyone see I'm doing wrong or I'm missing something?
I'd be very thankful for some assistance in getting Hammerhead working
with provider built against FDO 3.2.x branch.
BTW, is there any way to get low-level detailed log from Hammerhead,
some backtrace, etc.?
fdo-internals mailing list
fdo-internals at lists.osgeo.org
-------------- next part --------------
An embedded message was scrubbed...
From: <svn_fdo at osgeo.org>
Subject: [fdo-commits] r679 - trunk/Fdo/Unmanaged/Inc/Common
Date: Fri, 26 Jan 2007 12:49:12 -0500
More information about the fdo-internals