Opened 19 years ago
Last modified 19 years ago
#895 closed defect (fixed)
GetGeomType fails in debug environment for PostGIS provider
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
OGRLayer->GetLayerDefn()->GetGeomType() against a PostGIS provider always returns wkbUnknown when a dynamically linked application runs under the Visual C++ 7 debugger. The same call succeeds with either a debug or release build when it is run outside of the debugger. gdal/ogr is compiled with PostGIS and GEOS support. PostgreSQL version 8.0.3 PostGIS version 1.0.0.1
Change History (5)
comment:2 by , 19 years ago
I'm pretty sure I was using the correct DLL. I used process explorer to verify that the correct DLL is being loaded (it shows the full path). I can repeat the bug inside of the developer studio gui menu by switching between F5 (Debug->Start) or Ctrl-F5 (Debug->Start without Debugging). I have both Debug and Release builds of GDAL, but I've verified that the bug only shows up when running under the Debugger regardless of whether it is a Debug/Release build of GDAL. My personal hypothesis at the moment is that it is actually a libpq bug, but I haven't had a chance to put the GDAL code under the debugger to see exactly where the bug first appears. I looked at the ogrpgtablelayer.cpp code last week before vacation, and it looked good to me (it works outside of the debugger after all :-D ). I'll get the latest GDAL code and see if it dissapears. If not, I'll put that code under the debugger. Either way, I'll update the defect comments when I'm finished.
comment:5 by , 19 years ago
Craig, Ah, ok. I'll close this for now, but if the problem recurs with recent code please reopen it.
Note:
See TracTickets
for help on using tickets.