在关闭画面时,程序跳转到:
procedure TFormPlacement.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
经跟踪发现程序运行到
procedure IniWriteInteger(IniFile: TObject; const Section, Ident: string;
Value: Longint);
begin
if IniFile is TRegIniFile then
TRegIniFile(IniFile).WriteInteger(Section, Ident, Value)
else
if IniFile is TIniFile then
TIniFile(IniFile).WriteInteger(Section, Ident, Value); //在这个地方报错,
end;错误提示时:Project XXXX.exe raised exception class EIniFileException with message 'Unable to write to \Software\xxx\xxx'.请大家帮忙看看什么原因。
procedure TFormPlacement.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
经跟踪发现程序运行到
procedure IniWriteInteger(IniFile: TObject; const Section, Ident: string;
Value: Longint);
begin
if IniFile is TRegIniFile then
TRegIniFile(IniFile).WriteInteger(Section, Ident, Value)
else
if IniFile is TIniFile then
TIniFile(IniFile).WriteInteger(Section, Ident, Value); //在这个地方报错,
end;错误提示时:Project XXXX.exe raised exception class EIniFileException with message 'Unable to write to \Software\xxx\xxx'.请大家帮忙看看什么原因。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货