On 12 Mar 2008, at 11:02, Jonas Maebe wrote:

On 12 Mar 2008, at 05:41, Bee wrote:

http://bugs.freepascal.org/view.php?id=10684

Hints? TIA.

I'm currently using a not too elegant workaround to solve this problem. With some IFDEFs because the workaround is for FPC only.

There is no support for passing nil as a constant to a "procedure of object" parameter of a cdecl procedure at this time. You can work around it by using two overloads (one with a tnotify parameter, one without). That should work both in FPC and in Delphi.

Actually, this is more or less the same as what JoshyFun suggested earlier.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to