线程建立时报错:
Project XX.exe raised exception class EAccessViolation with message 'accesss violation at address 004189d88'in module 'xx.exe'.Writeofaddress 000000e'.Process stopped.use Step or Run to continue.我的线程是按标准方法建立的 file|New|Other...建立一个TMythread类,其它啥事都没做.
在Form中
private
MyThread:TMythread;在 procedure TForm1.Button2Click(Sender: TObject)
begin
MyThread.Create(true); <----------------------------------立刻报错
end
Project XX.exe raised exception class EAccessViolation with message 'accesss violation at address 004189d88'in module 'xx.exe'.Writeofaddress 000000e'.Process stopped.use Step or Run to continue.我的线程是按标准方法建立的 file|New|Other...建立一个TMythread类,其它啥事都没做.
在Form中
private
MyThread:TMythread;在 procedure TForm1.Button2Click(Sender: TObject)
begin
MyThread.Create(true); <----------------------------------立刻报错
end
老大就不要来抢分了,这些小活让我来干就好了,呵呵
多半是写了某个未create的对象中的某个变量
MyThread := TMyThread.Create(true);
end