【发布时间】:2020-10-17 14:59:57
【问题描述】:
在 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
【问题讨论】:
标签: delphi indy delphi-10.4-sydney