R
ruder
Unregistered / Unconfirmed
GUEST, unregistred user!
program Project1;
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
mythread = class(TThread)
private
{ Private declarations }
protected
procedure Execute;
override;
public
constructor create(pointer);
end;
constructor mythread.create(pointer);
begin
inherited create(false);
end;
procedure mythread.Execute;
begin
showmessage('test');
end;
var
mythread1:mythread;
begin
mythread1:=mythread.create(nil);
showmessage('jdf');{我把这句去掉,运行就出错 }
end.
why??????????????
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
mythread = class(TThread)
private
{ Private declarations }
protected
procedure Execute;
override;
public
constructor create(pointer);
end;
constructor mythread.create(pointer);
begin
inherited create(false);
end;
procedure mythread.Execute;
begin
showmessage('test');
end;
var
mythread1:mythread;
begin
mythread1:=mythread.create(nil);
showmessage('jdf');{我把这句去掉,运行就出错 }
end.
why??????????????