Delphi XE8 Android 中的异常处理中断
Exception handling broken in Delphi XE8 Android
我有一个应用程序 Android 一年多了。
突然间它完全停止工作了。
似乎 try..except..end 机制完全失败了。
要验证,请创建一个包含一个 TLabel 和一个 TButton 的表单。
添加代码:
procedure TForm1.Button1Click(Sender: TObject);
begin
Label1.Text := 'What???';
Try
StrToInt('xxx');
Except
Label1.Text := 'Exception';
End;
end;
我可以 运行 这个并在我的 Sony phone 上正确调试它,但是没有调用异常,应用程序只是关闭。
升级到 Berlin 10.1 立即解决了问题。
@Erwin 如果你愿意提出这个作为答案而不是评论,我会接受它作为答案。
Delphi XE8没有officially support Android 6. I once developed app which runs correctly on Android 5, but had exception handling issues on Marshmallow. No problems with Delphi Seattle though. Glad to hear upgrading to Delphi 10 Berlin解决问题![=11=]
我有一个应用程序 Android 一年多了。
突然间它完全停止工作了。
似乎 try..except..end 机制完全失败了。
要验证,请创建一个包含一个 TLabel 和一个 TButton 的表单。
添加代码:
procedure TForm1.Button1Click(Sender: TObject);
begin
Label1.Text := 'What???';
Try
StrToInt('xxx');
Except
Label1.Text := 'Exception';
End;
end;
我可以 运行 这个并在我的 Sony phone 上正确调试它,但是没有调用异常,应用程序只是关闭。
升级到 Berlin 10.1 立即解决了问题。
@Erwin 如果你愿意提出这个作为答案而不是评论,我会接受它作为答案。
Delphi XE8没有officially support Android 6. I once developed app which runs correctly on Android 5, but had exception handling issues on Marshmallow. No problems with Delphi Seattle though. Glad to hear upgrading to Delphi 10 Berlin解决问题![=11=]