Event handling in ex4 libraries

 

In the 509 code the libraries handle the init() and deinit() events.

But it does not seem to work in the new 600+ code. Do you have some suggestion, how to destroy the library without explicit call of some exported function?

Reason: