Does RTTI and exceptions work in dlls on windows?
MrSmith via Digitalmars-d
digitalmars-d at puremagic.com
Tue Nov 25 08:50:14 PST 2014
On Tuesday, 25 November 2014 at 10:02:00 UTC, Kagamin wrote:
> On Monday, 24 November 2014 at 20:56:29 UTC, Rainer Schuetze
> wrote:
>> The different DLLs have different copies of the RTTI for the
>> classes (you could not link them separately otherwise).
>> Looking for base classes or derived classes only compares RTTI
>> pointers, so it doesn't find the target class of a cast in the
>> hierarchy inside another DLL.
>
> Maybe we can have a function, which will search the typeinfo
> based on type name, like C++ does it?
I was sure that when dll is loaded, runtimes will merge (hook)
and all type info is shared between dll and application.
More information about the Digitalmars-d
mailing list