[Lazarus] Call Load/Unload library from procedure

cobines cobines at gmail.com
Wed Feb 3 10:19:10 CET 2010


I'm not exactly sure, but it might have something to do with memory
allocation, because it works with Word type, but not with strings. You
cannot return strings because I think they are allocated by one memory
manager (in dll) and deallocated by another (in main program). You
would have to link main program and the dll to the same RTL.
Maybe ask about this on the FPC mailing list if you don't get a better
answer here.

--
cobines




More information about the Lazarus mailing list