V
Vyacheslav Lanovets
Hello, All!
One of our target platforms has only 32 MB of virtual memory (Windows CE),
so we decided to explicitly load some of our dlls.
But the classes created inside such dlls are created with vfptr pointed to
address space of the dll. So when DLL is unloaded vtable is destroyed.
The virtual clone() function of such instance creates the class with the
same vfptr
The problem could be solved by moving inline functions to cpp files. But the
class is a template
Best regards, Vyacheslav Lanovets
One of our target platforms has only 32 MB of virtual memory (Windows CE),
so we decided to explicitly load some of our dlls.
But the classes created inside such dlls are created with vfptr pointed to
address space of the dll. So when DLL is unloaded vtable is destroyed.
The virtual clone() function of such instance creates the class with the
same vfptr
The problem could be solved by moving inline functions to cpp files. But the
class is a template
Best regards, Vyacheslav Lanovets