procedure Tovertime_form.cxGrid1DBTableView1CellDblClick(
Sender: TcxCustomGridTableView;
ACellViewInfo: TcxGridTableDataCellViewInfo; AButton: TMouseButton;
AShift: TShiftState; var AHandled: Boolean);
begin
master_qt.Refresh ;
end;master_qt 為Tadoquery 出現錯誤:access violation at address 005DB8C in module 'ty_mis.exe'.
read of address 0221F9B4但在其它控件中卻不會出現此錯誤!
Sender: TcxCustomGridTableView;
ACellViewInfo: TcxGridTableDataCellViewInfo; AButton: TMouseButton;
AShift: TShiftState; var AHandled: Boolean);
begin
master_qt.Refresh ;
end;master_qt 為Tadoquery 出現錯誤:access violation at address 005DB8C in module 'ty_mis.exe'.
read of address 0221F9B4但在其它控件中卻不會出現此錯誤!
"master_qt你先open" 已open
代碼放至 其它控件中卻不會出現此錯誤!
代碼放至 其它控件中卻不會出現此錯誤!
-----------
要不换个该控件再试试。。
第二个,看看这个控件关联的事件,在reflush的时候,触发的东西。特别是你的这个控件是通过ctrl+C和Ctrl+V生成的,往往容易往了会copy原来那个控件的事件,这个时候触发当然就access violation ,比如:控件关联的datasource的onchange事件。我反正就常常遇到这个错误,但是还是常常犯这个错误。郁闷。