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. This problem makes using SOs/DLLs pointless because if one plugin is unloaded and the main service application closes due to a crash, all plugins running under that process will go down with it. 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 project's 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 as of 2008.12.15. Thanks for you input, if any, Andy. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal