在 Delphi 10.4.1 MacOS 项目上删除一个 idHTTP 组件并让它 Get() 一个文件会导致应用程序退出。
我不是在谈论未处理的异常。MacOS 10.15.6 在崩溃报告中通过以下投诉杀死了该应用程序:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.
这是代码。Get() 必须传递一个实际的文件。(如果 Get() 导致 404,则引发适当的异常。)
procedure TForm1.FormCreate(Sender: TObject);
var
Stream: TMemoryStream;
begin
Stream := TMemoryStream.Create;
IdHTTP1.Get('https://www.bookup.com/cowupdates/build113.txt', Stream);
// app crashes on Mac