Re: [gdal-dev] NewDataset and SetBand error

2013-11-20 Thread Seung Ae Lim
Warmerdam [warmer...@pobox.com] To:Seung Ae Lim [sa...@pixoneer.co.kr] Cc:gdal dev [gdal-dev@lists.osgeo.org] Sent:Fri , November 08, 2013 01:31 AM Subject:Re: [gdal-dev] NewDataset and SetBand error Seung, If the fields, like papoBands in the dataset seem ok before stepping into SetBand

[gdal-dev] NewDataset and SetBand error

2013-11-07 Thread Seung Ae Lim
Dear, I make a console application with VS2010 linking gdal_i.lib. The steps are : 1. Create New Dataset and Band in main.cpp class XXDataset : public GDALPamDataset { public: XXDataset() {}; ~XXDataset() {}; static GDALDataset* Open(GDALOpenInfo*); }; class XXRasterBand

Re: [gdal-dev] NewDataset and SetBand error

2013-11-07 Thread Frank Warmerdam
Seung, If the fields, like papoBands in the dataset seem ok before stepping into SetBand(), and corrupt once you are inside I would suspect that GDAL and your application have been built with different gdal_priv.h include files *or* with different structure alighnments flags for Visual Studio.

Re: [gdal-dev] NewDataset and SetBand error

2013-11-07 Thread Seung Ae Lim
@lists.osgeo.org] Sent:Fri , November 08, 2013 01:31 AM Subject:Re: [gdal-dev] NewDataset and SetBand error Seung, If the fields, like papoBands in the dataset seem ok before stepping into SetBand(), and corrupt once you are inside I would suspect that GDAL and your application have been built