[Gdal-dev] about VRTDataset

Frank Warmerdam warmerdam at pobox.com
Sun Oct 26 13:16:22 EST 2003


Fu Chen wrote:
> Hi!
> I read the code of gdal_translate, which take vrt as a temp dataset. I wanna write something like that. So I write a simple test program. But this doesn't work :<
> 
> void main()
> {
>     GDALAllRegister();
>     VRTDataset *poVDS;
>     poVDS = new VRTDataset( 100, 100);
>  GDALDumpOpenDatasets( stderr );
>  delete poVDS;
> }
> 
> the program crashed at GDALDumpOpenDatasets.
> 
> I use VC7 VC6 on win2k platform. and my GDAL is gdalcvs-031015.zip.
> Anyone know what's up?

Fu Chen,

I tried this on Linux and had no problem. I even ran it through valgrind
and had no issues.   I would encourage you to debug the problem at your end.

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    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list