libtool
[Top][All Lists]
Advanced

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

Re: C++ Plugins and virtual destructors.


From: Bob Friesenhahn
Subject: Re: C++ Plugins and virtual destructors.
Date: Sun, 11 Nov 2007 16:17:08 -0600 (CST)

On Sun, 11 Nov 2007, Daniel Herring wrote:

If the vtable is functioning for normal virtual functions, why wouldn't it also work for a virtual destructor? Destructors are not magic; they are merely functions that get called just before memory is released. RTTI, a common culprit in dlopen issues, doesn't get involved here.

Right. A more important question to ask is if static constructors/destructors get properly executed, including the framework necessary to support C++ exceptions. The C++ exception issue is significant since usually the framework is set up by the original program and if the plugin does not properly mesh into it then there is a problem. There may also be a problem if the program is written and linked as a C program but the plugin is C++.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/





reply via email to

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