[FWTools] GDALOpen craches the second time it is
called....
Kolberg Sjur A
Sjur.A.Kolberg at sintef.no
Thu May 15 08:56:01 EDT 2008
Hello again,
This is somewhat embarrassing...
For some inexplainable reason I believed that the offending function
CreateTransformedGrid() was a part of GDAL. It is actually my own, and
once realized, it was an easy task to track the error further, finding
the cause in a delete on a GDALDriver*. This object was created on the
GDAL side, so deleting it on my program.exe side caused a memory
corruption which was undetected by the tests I had put in.
So, everything now works fine, there's no bug to file, and I apologise
for suggesting you debug my non-supplied code...
Best regards,
Sjur K :-)
> -----Original Message-----
> From: Frank Warmerdam [mailto:warmerdam at pobox.com]
> Sent: 15 mai 2008 06:42
> To: Kolberg Sjur A
> Cc: FWTools at lists.maptools.org
> Subject: Re: [FWTools] GDALOpen craches the second time it is
> called....
>
> Kolberg Sjur A wrote:
> > I managed to isolate the call that make the next GDALOpen() crash.
> >
> > Consider this code and ignore the details of the
> > CreateTransformedGrid() call, neither its parameters nor
> its result is
> > relevant here. The first
> > GDALOpen() call works OK, the second is identical, but
> crashes. Does
> > anyone have a clue to how the CreateTransformedGrid() call
> can cause this ?
>
> Sjur,
>
> The obvious conclusion is that the CreateTransformedGrid()
> function is doing something wrong, possibly corrupting the
> heap. So i don't think it is fair to ask us to ignore what
> CreateTransformedGrid() does but still expect suggestions on
> what might be causing the problem.
>
> Best regards,
> --
> ---------------------------------------+----------------------
> ----------
> ---------------------------------------+------
> I set the clouds in motion - turn up | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush | President OSGeo,
> http://osgeo.org
>
>
More information about the FWTools
mailing list