2011/4/19 Graeme Geldenhuys <[email protected]>: > Unless you store a reference of the result of the DisplayCursor() call, > it will not work under FPC (like it does under Delphi). FPC is *not* > compatible with the way Delphi works in this regard. The FPC developers > are also not willing to fix this because the freeing of a undeclared > interface reference in a local method is a undefined/undocumented > feature of Delphi
I thought it was freed just like Delphi (so no resource leak), but not at the same time (which is undocumented) as Delphi. . > > NOTE: > The issue is only if you call DisplayCursor() without storing the result > in a local variable. > Vincent -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
