Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-12

Dynamic Library in Linux

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

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 can get these Plug-ins to Load and Operate just fine (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.

Here's my extensive thread so far. I'm hoping to find a good solution shortly as this is slowing me down.

http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=6033&start=0&postdays=0&postorder=asc&highlight=

Are there a few tricks involved in getting FPC to compile these SOs properly? The minute I include Classes in my uses I can't Unload the library. If I just have straight forewared simple data types with no other uses I can get these to unload. Do you have any ideas?

I'm using all the latest and greatest FPC and Lazarus sources from subversion.

Thanks for you input, if any, Andy.

Reply by email

Felipe Monteiro de Carvalho
to Andrew Brunner

To start with, you should ask this in the free pascal mailling list, as this is more related to free pascal then to Lazarus. The classes unit is part of Free Pascal.

Second, using the subversion compiler could be the problem. I would try using FPC 2.2.2 instead.

Felipe Monteiro de Carvalho

Reply by email