[gdal-dev] GDALColorTable - can't delete it
David Strip
gdal at stripfamily.net
Wed Oct 30 08:23:34 PDT 2013
I'm having trouble with the GDALColorTable in C++ on WIn7 using Visual
Studio 2010
With a function as simple as
void foo()
{
GDALColorTable * ct = new GDALColorTable;
delete ct;
}
I've also tried
void foo()
{
GDALColorTable ct;
}
and
void foo()
{
GDALColorTable * ct = new GDALColorTable;
GDALDestroyColorTable((GDALColorTableH) ct);
}
I get either unhandled exception or stack corruption errors.
I expect there's something simple I'm missing, but it's eluding me at
the moment.
More information about the gdal-dev
mailing list