Any idea to call:
BeginThread (@MyObject.F1, Pointer (S))
Michael Van Canneyt wrote:
On Sat, 4 Mar 2006, Amir Aavani wrote:
I have problem with procedure Types.
Look at the following code:
TProcedure= procedure (S: String);
TTest= class
MyF: TProcedure;
procedure F1 (S: String);
On Mon, 13 Mar 2006, Amir Aavani wrote:
Any idea to call:
BeginThread (@MyObject.F1, Pointer (S))
You can't do this. MyObject.F1 is a method, not a procedure.
You should do something like:
Function MyThreadProc(P : Pointer) : Integer;
begin
TMyObject(P).F1;
end;
and call
BeginThread
Hi,
Question, does the platform derective onlyt work for properties ? It
seems the you may add it to methods and procedures as well, but when
accessing them no warning is issued. On FPC 2.0.2 I only get an warning
if I access property A.
I couldn't find documentation on this either.
Marc