Hi,
I have a problem with RTL Event. RTLEventCreate always returns NIL when it's called from dynamic library.
If I call the function from graphical application (LCL), everything works as intended and function returns valid pointer.
Is there something I am missing?
Thanks for the help.
OS: Linux Mint XFCE x64
Lazarus: 2.0.0
FPC: 3.0.4
library knihovna;
{$mode objfpc}{$H+}
{$R *.res}
var Evt: PRTLEvent;
function Get_Version: Int32; cdecl;
begin
Evt := Nil;
Evt := RTLEventCreate;
If Evt <> Nil then Result := 111
else Result := -222;
RTLEventDestroy(Evt);
end;
exports
Get_Version;
begin
end.