[Gdal-dev] Little problem in makefile.vc
Frédéric Trastour
support at geoimage.fr
Tue Feb 21 09:50:37 EST 2006
Franck,
>
> I'm pretty sure this is what I did (VC6, /MD, GDAL 1.3.1).
>
Ok, the problem is probably elsewhere.
> > The driver is recognized (my GDALRegister_GEO is called) but It seems that the call to
> > GetGDALDriverManager()->RegisterDriver fails : a call to the function
> > GDALGetDriverByName( "GEO" ) returns NULL just after the registering.
> >
> > Note that the same driver works with the gdal distrib and its utilities.
>
> Hmm. That is odd. Was this with MS4W 1.4.0 (the most current release)?
Yes, this is the last version (ms4w_1.4.0.zip).
I have done many and many tests and I really can't localize the problem.
I have created a dummy driver without any dependencies ( my real driver uses a lot of external static
libraries and I thank this could be the source of the problem ) and I can't load it.
This really look likes an incompatibility between gdal versions ( basic 1.3.1 and the one used in MS4W ),
for example, in my driver, i do :
poDriver->pfnOpen = DUMMYDataset::Open;
poDriver->pfnCreate = DUMMYDataset::Create;
poDriver->pfnDelete = DUMMYDataset::Delete;
int iDummyDriverIndex = GetGDALDriverManager()->RegisterDriver( poDriver );
If i comment the two lines relative to pfnCreate and pfnDelete, i get a different crash.
It looks like a structure alignment problem or a change in the class definition...
Have you any suggest which could help me to solve my 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 | Geospatial Programmer for Rent
>
More information about the Gdal-dev
mailing list