[Gdal-dev] need RTTI for OGR (Windows)
Chapman, Martin
MChapman at sanz.com
Fri Apr 7 12:11:25 EDT 2006
Frank,
You only have to enable RTTI in GDAL if the GDAL code itself uses
polymorphic type checking. If I write an app that includes a dependent
dll and I want type checking then that is specific to my binary and
should have nothing to do with any external dll's that I use. Think
about it, if that was the case then I would always have to recompile
every dependency that I use if they didn't compile with the option.
Martin
-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Frank
Warmerdam
Sent: Friday, April 07, 2006 8:03 AM
To: EllenD
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] need RTTI for OGR (Windows)
EllenD wrote:
> I didn't use the /GX option in my code. I tryed it now, but I still
get the
> error.
Ellen,
OK, it was a long shot.
> I don't understand what you mean with "problems related to using it
across
> the DLL boundaries". I link my applications against the gdal_i.lib
which
> calls the gdal131.dll....
You are trying to do dynamic casting on a class implemented in
gdal131.dll
from your application code. So, we could say the dynamic casting is
happening cross the boundary between the gdal131.dll and your
application.
DLLs on windows do all sorts of magic thunking in an attempt to make it
seem like everything is working normally but in reality there is a whole
layer of proxying for everything, DLLs often have their own heap and
other runtime resources.
I'm not saying the problem does have to do with this, but it seems
plausible
since dynamic casting seems to work ok for me internally.
Of course, I could easily be on entirely the wrong track.
I'm afraid I'm out of suggestions.
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 | President OSGF,
http://osgeo.org
_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list