Changes between Version 1 and Version 2 of Ticket #641


Ignore:
Timestamp:
Apr 8, 2007, 2:03:47 PM (17 years ago)
Author:
Mateusz Łoskot
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #641 – Description

    v1 v2  
    1 {{{
    21Hi,
    32 
    4 I'm not sure if this is a bug in OGR or in my program. What i try to do is to
    5 create an empty shapefile and later to open this shapefile and insert features
    6 into it. When i try to add the feature, a crash happens. Also i noticed that a
    7 field, which i created on the empty shapefile is not recognised when the empty
    8 layer is opened. Below is my source code and the debugger backtrace after the
    9 crash. A .tgz of the created files (.shp,.dbf,etc.) befor adding a feature is
    10 on ftp://ftp.geo.unizh.ch/pub/mhugent/newlayertest.tgz
     3I'm not sure if this is a bug in OGR or in my program. What i try to do is to create an empty shapefile and later to open this shapefile and insert features into it.
     4
     5When i try to add the feature, a crash happens. Also i noticed that a field, which i created on the empty shapefile is not recognised when the empty layer is opened.
     6
     7Below is my source code and the debugger backtrace after the crash.
     8
     9A .tgz of the created files (.shp,.dbf,etc.) befor adding a feature is on ftp://ftp.geo.unizh.ch/pub/mhugent/newlayertest.tgz
    1110 
    12 thanks,
    13 Marco
    14  
    15  
     11{{{
    1612//create an empty layer and add a field to it
    1713OGRwkbGeometryType geomtype=(OGRwkbGeometryType)((int)vectortype);
     
    5753        return false;
    5854    }
    59  
    60 the debugger output when inserting a new feature afterwards:
    61  
     55}}}
     56
     57The debugger output when inserting a new feature afterwards:
     58
     59{{{
    6260Program received signal SIGSEGV, Segmentation fault.
    6361[Switching to Thread 1091298272 (LWP 25403)]
     
    7472) at stl_list.h:167
    7573}}}
     74
     75Marco