begin
Button1.Enabled := false;
ThreadASRRUN(nil);
Sleep(100);
ShowMessage('111');
Button1.Caption := '111';
end;运行到 Button1.Caption := '111';这一句,就出错。如下---------------------------
Debugger Fault Notification
---------------------------
Project F:\project\jASR_Delphi\ASRTest.exe faulted with message: 'access violation at 0x00456dc7: read of address 0x000002f7'. Process Stopped. Use Step or Run to continue.
---------------------------
OK
---------------------------很郁闷,为啥只要 Button1.Caption := '111';这种操作,无论是button还是text,对其进行操作,他都报错。难道不能这样写新手请教各位dx了。
Button1.Enabled := false;
ThreadASRRUN(nil);
Sleep(100);
ShowMessage('111');
Button1.Caption := '111';
end;运行到 Button1.Caption := '111';这一句,就出错。如下---------------------------
Debugger Fault Notification
---------------------------
Project F:\project\jASR_Delphi\ASRTest.exe faulted with message: 'access violation at 0x00456dc7: read of address 0x000002f7'. Process Stopped. Use Step or Run to continue.
---------------------------
OK
---------------------------很郁闷,为啥只要 Button1.Caption := '111';这种操作,无论是button还是text,对其进行操作,他都报错。难道不能这样写新手请教各位dx了。
是不是对Button1做了些什么?
这里面肯定有错,比如说dll调用参数个数不对==