On Sunday 11 October 2015 18:34:07 Minoshi wrote: > Hello, Martin! > > I need to use external library with components in it. I try with timer > and tfilechangenotifyer.
It is almost impossible to use components (and classes) in Free Pascal libraries. The problem is that each dll/so has its own RTL including memory manager and tapplication instance and that the "is" operator does not work beetween different libraries or between library and main program because class pointers of the same class differ in the different modules. The solution would be Delphi like packages which FPC not supports. The problem of the timer in your library for example is that the timer registers the timeout in the timer engine of its module instead the timer engine of the main application where the main event loop runs. In theory it is possible to call the tick of the library timer engine by onidle of the main event loop in main application, but there most likely will be many other problems. I recommend to forget about components in libraries until FPC supports Delphi like packages. Martin ------------------------------------------------------------------------------ _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

