I'm not familiar at all with SDE and Windows subtelties, so my comment might be unrelevant. But the following statements are at least universally true : * if your application uses GDAL/OGR C++ API, you must recompile it against headers of newer GDAL version as C++ ABI changes from 1.x to 1.y (contrary to C API). Just relinking will not be sufficient. * for same reason, if you try to load GDAL plugins compiled with an older version into a different GDAL version, you'll get crashes. Some checks have been introduced starting with GDAL 1.5.0 into plugin code to detect those situations and error out properly. * if your application links directly or indirectly with several copy of GDAL library at the same time, it will likely not work too
Le Wednesday 17 June 2009 20:59:24 Clay, Bruce, vous avez écrit : > Mateusz: > > Yes that is the case. The same application works fine with GDAL 1.5.4 > but not with any newer version. > > I am beginning to suspect SDE / GDAL interaction. I think SDE uses GDAL > 1.4. My GDAL library is built with SDE support and I am linking in > ArcObjects libraries to my application. I am linking to the GDAL static > library when the crash occurs. If I try to link to the gdal_i.lib then > the program does not crash but it does not let me step into any of the > methods even though it is a debug library and no GDAL functions work. > > You mentioned "configuration". Does GDAL 1.6 and new code require some > configuration on Windows XP that was not required before? > > Bruce > > > -----Original Message----- > From: Mateusz Loskot [mailto:mate...@loskot.net] > Sent: Wednesday, June 17, 2009 1:15 PM > To: Clay, Bruce > Cc: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] How to delete shapefile > > Clay, Bruce wrote: > > Mateusz: > > Thanks for your reply. Unfortunately I can not get far enough to do > > that. The crash is occurring down stream from OGRRegisterAll. That > > is > > > to say, the last call in my code space before the crash is > > OGRRegisterAll. I can not get OGR initialized to be able to open a > > data > > > source. > > Bruce, > > Are you saying that you are unable to run this simple program > successfully? > > #include "ogrsf_frmts.h" > int main() > { > OGRRegisterAll(); > } > > If you indeed can not run it, it probably means your GDAL installation > is not configured properly or broken. > > Best regards, _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev