Hi Elias,

I see. Actually the callback was introduced already earlier on your behalf.
I have changed the code slightly so that the native functions gets really erased.
Lets see if that works, SVN 214.

/// Jürgen


On 04/18/2014 05:44 PM, Elias Mårtenson wrote:
The problem is that the __attribute__ feature is GCC-specific. And the other standard ways of handling callbacks when loading/unloading libraries (__init and __fini) are also non-standard (they work on Linux and Solaris to my knowledge but likely not on many others).

I can't really think of a better way than a dedicated callback function when the symbol is )ERASEd.

Specifically, I would like to rollback any active transactions and close all SQL connections when this happens.

Being able to tell the interpreter to unload the library is less important, although if the former is done, the latter is probably trivial to implement?

Regards,
Elias




Reply via email to