[GRASS-dev] Re: [GRASS GIS] #468: crash in GPJ_grass_to_wkt() on windows

GRASS GIS trac at osgeo.org
Thu Jan 29 06:16:01 EST 2009


#468: crash in GPJ_grass_to_wkt() on windows
---------------------------+------------------------------------------------
  Reporter:  jef           |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect        |      Status:  new                      
  Priority:  major         |   Milestone:  6.4.0                    
 Component:  default       |     Version:  unspecified              
Resolution:                |    Keywords:                           
  Platform:  MSWindows XP  |         Cpu:  Unspecified              
---------------------------+------------------------------------------------
Comment (by jef):

 Replying to [comment:1 neteler]:
 > The definition of pj_dalloc() is here:
 > http://svn.osgeo.org/metacrs/proj/trunk/proj/src/pj_malloc.c
 >
 > {{{
 > void
 > pj_dalloc(void *ptr) {
 >       free(ptr);
 > }
 > }}}
 >
 > The definition of G_free() is here:
 >
 http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/lib/gis/alloc.c#L127
 >
 > {{{
 > void G_free(void *buf)
 > {
 >     free(buf);
 > }
 > }}}
 >
 > Is there a difference?

 sure.  Every DLL runs it own memory management and therefore memory
 malloc() in a one DLL needs to be free by the very same DLL and that's
 probably the sole reason for the existance of above functions (same for
 GDAL, GEOS...).

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/468#comment:2>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list