[Top][All Lists]

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

Re: C++ Plugins and virtual destructors.

From: Roumen Petrov
Subject: Re: C++ Plugins and virtual destructors.
Date: Tue, 13 Nov 2007 23:23:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20071024 SeaMonkey/1.1.5

Ralf Wildenhues wrote:
* Daniel Herring wrote on Mon, Nov 12, 2007 at 07:46:55AM CET:
Here's a relevant post from the GCC list; it mentions how to work around some dlopen difficulties (including RTTI, exceptions, custom new/delete).

Thanks for this link.  FWIW, I could not easily see why RTLD_NOW should
be needed.  If it is, there's an opportunity to extent libltdl's advise
API for this flag.
Lest see samples from

If chain2.c dlopen with RTLD_LOCAL only the program crash in 
dlclose(segmentation fault).
So that work around is to use either RTLD_NOW or RTLD_LAZY.



reply via email to

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