D
dablyo
Unregistered / Unconfirmed
GUEST, unregistred user!
线程定义
TdyDisThd = class(TThread)
private
offiname: array[0..14] of char;
public
constructor Create(moffi : pchar);
destructor Close;
protected
procedure Execute;
override;
end;
声明和创建
dyDisThd : TdyDisThd;
dyDisThd.Create(@rname);
//这里rname是字符数组
构造函数
constructor TdyDisThd.Create(moffi : pchar);
begin
inherited Create(True);
//这里经常出错,弹出CPU内存,寄存器等内容框
FillChar(offiname,sizeof(offiname),#0);
StrPCopy(offiname,moffi);
Resume;
end;
我查不出什么问题。
TdyDisThd = class(TThread)
private
offiname: array[0..14] of char;
public
constructor Create(moffi : pchar);
destructor Close;
protected
procedure Execute;
override;
end;
声明和创建
dyDisThd : TdyDisThd;
dyDisThd.Create(@rname);
//这里rname是字符数组
构造函数
constructor TdyDisThd.Create(moffi : pchar);
begin
inherited Create(True);
//这里经常出错,弹出CPU内存,寄存器等内容框
FillChar(offiname,sizeof(offiname),#0);
StrPCopy(offiname,moffi);
Resume;
end;
我查不出什么问题。