Hi,
hier schonmal der Code in kurzer Form:
Delphi-Quellcode:
type
TOnFinished = procedure(Sender: TThread) of object;
TIRCThread = class(TThread)
private
class procedure IRCOff(Sender: TObject);
protected
procedure Execute; override;
public
constructor Create(CreateSuspended: Boolean);
destructor Destroy; override;
property OnFinished: TOnFinished read FOnFinished write FOnFinished;
end;
class procedure TIRCThread.IRCOff(Sender: TObject);
begin
OnFinished(Self);// hier meldet er sich:
end;
Zitat:
[DCC Fehler] UIRCThread.pas(386): E2076 Diese Form des Methodenaufrufs ist nur für Klassenmethoden erlaubt
was mache ich falsch?
mfg
gandime