help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic_cast from base to another parent of derived class


From: Boris
Subject: Re: dynamic_cast from base to another parent of derived class
Date: Thu, 5 Oct 2006 12:10:28 +0300

Fred Zwarts wrote:
> [...]
> Interesting. A few years ago I had a similar problem on an OpenVMS
> system.
> The dynamic_cast did not work properly in a function that was called
> from
> another function in a shareable image (which is similar to a dynamic
> library
> under Linux). An example was code running in a separate thread. Since
> the
> pthread library was in a shareable image, functions running in
> another thread
> were called from functions in a shareable image.
> The OpenVMS engineers brought out a patch for the compiler and the
> run-time
> library quickly.
>
> The similarity of these problems strikes me, as the compiler
> environments are
> from very different teams. Apparently there is something in
> dynamic_cast
> that makes it difficult to work from pre-linked parts of a program.

Could you easily reproduce the problem with a small test program or was it 
something where some other conditions had to be met? And did you ever try to 
link everything statically just to see if the problem disappeared?

Boris 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]