[Lazarus] RE : RE : Dynamic loading of a custom sqlite library

Ludo Brands ludo.brands at free.fr
Sun Jun 12 10:48:02 CEST 2011


 
 >  So what did you mean by saying 'dangerous'?   
 
You should have read a little further in the message: "Possibly everything
is fine for sqlite3 but documenting it as a general solution is IMHO not
correct.". The scenario I was talking about assumed an initialization
(before lib2 is loaded) and a finalization routine which would/could run in
different librarie. This is not the case in your example. 
I proposed to test if  the library was loaded before loading again as a more
general solution to the problem. 
Don't get me wrong. I'm happy this is working for you. I'm only saying it is
not a good idea to document/promote this as a general solution for avoiding
problems with double loaded libraries.
 
Ludo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110612/f171a46e/attachment-0003.html>


More information about the Lazarus mailing list