Sending a Component to a library function? lazarus / 31-LCL ---------------------------------------------------------------------- Nafees · 2016-02-16 11:45 I want to access a component on the caller application's form through a library (Shared Library *.so). I've tried sending their pointers then doing this: ComponentName(PtrToComponent) But it doesn't seem to work, gives an access violation which means that it didn't even recieve the address? Any ways to solve this? ---------------------------------------------------------------------- marcov · 2016-02-16 12:05 No it doesn't work.  Both the main binary and the .so have an own copy of the libraries (LCL,RTL) and their state (see packages). There are workarounds for this on lower level, but afaik not for complete GUI functionality. It will have to wait till packages arrive.