[fpc-pascal] Problems with Dynlibs.UnloadLibrary on Linux

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Dec 16 22:29:15 CET 2008

On 16 Dec 2008, at 13:58, Andrew Brunner wrote:

> I've been experiencing problems with SOs under Linux and am trying to
> develop a "Plugin" system for my Server I'm porting to Lazarus.  I'm
> confident can get these Plug-ins to Load and Operate just fine at
> least in (Ubuntu).
> I can't however, Unload them.  I want to be able to use the
> DynLibs.UnloadLibrary to unload a library.  I can't because I keep
> getting a Segmentation Fault and the Application Crashes just by
> calling the Unload Library.

In what code does it crash? Inside unloadlibrary, or (shortly)  
afterwards? What is the backtrace at the point of the crash?

> Are there a few tricks involved in getting FPC to compile these SOs
> properly?  The minute I include Classes in my project's uses I can't
> Unload the library.

Even if you don't call any routines from that unit?


More information about the fpc-pascal mailing list