Hi,
I know, R20 is a while old, but maybe someone has an idea...
The following code crashes reproducibly on R20 (definitely on macOS, not yet sure about Windows):
maxon::Url theServer("https://www.myserver.org/somefolder/somefile.json"_s);
maxon::BaseArray<Char> memReq;
iferr (maxon::FileUtilities::ReadFileToMemory(theServer, memReq))
{
DiagnosticOutput("@", err);
}
The same (well, almost the same) code works flawlessly in R21 - R23:
maxon::Url theServer("https://www.myserver.org/somefolder/somefile.json"_s);
// Set post properties (apparently not yet possible in R20)
theServer.Set(maxon::URLFLAGS::HTTP_POSTMETHOD, method) iferr_return;
theServer.Set(maxon::URLFLAGS::HTTP_POSTDATA, maxon::CString(postData, maxon::StringEncodings::Utf8())) iferr_return;
maxon::BaseArray<maxon::Char> memReq;
iferr (maxon::FileUtilities::ReadFileToMemory(theServer, memReq))
{
DiagnosticOutput("@", err);
}
Thanks in advance for advice!
Cheers,
Frank