[postgis-devel] [PostGIS] #363: GUI Options Window won't Re-open
PostGIS
trac at osgeo.org
Mon Jan 4 12:31:32 PST 2010
#363: GUI Options Window won't Re-open
----------------------+-----------------------------------------------------
Reporter: pramsey | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 1.5.1
Component: postgis | Version: trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by pramsey):
I took rburhum's advice and put a watch on the memory area used by the
hSHPHandle and it looks like it's windows clobbering it
{{{
(gdb) break shp2pgsql-core.c:896
Breakpoint 1 at 0x4082be: file shp2pgsql-core.c, line 896.
(gdb) r
Starting program: z:\win32build\output\pgsql-postgis\bin/./shp2pgsql-
gui.exe
[New Thread 1572.0x1f4]
[New Thread 1572.0x6f8]
Breakpoint 1, ShpLoaderOpenShape (state=0x1330870) at shp2pgsql-core.c:897
897 if (state->hSHPHandle == NULL)
(gdb) print state->hSHPHandle
$4 = (SHPHandle) 0x0
(gdb) break shp2pgsql-core.c:905
Breakpoint 2 at 0x407e56: file shp2pgsql-core.c, line 905.
(gdb) c
Continuing.
Breakpoint 2, ShpLoaderOpenShape (state=0x1330870) at shp2pgsql-core.c:907
907 state->hDBFHandle = DBFOpen(state->config->shp_file,
"rb");
(gdb) print state->hSHPHandle
$5 = (SHPHandle) 0x131fae0
(gdb) watch *0x131fae0+0x04
Hardware watchpoint 3: *0x131fae0+0x04
(gdb) c
Continuing.
Hardware watchpoint 3: *0x131fae0+0x04
Old value = 2009464036
New value = 4063772
0x7c9276f9 in ntdll!RtlPcToFileHeader () from
C:\WINDOWS\system32\ntdll.dll
(gdb)
}}}
This is an environment issue, not a code issue, I'm thinking. We're going
to have to look at our Win32 compile at some point.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/363#comment:14>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list