Bug in IXMLOutStream.h header file
InDesign2020SDK/source/public/interfaces/xmedia/IXMLOutStream.h:499
void WriteName(const UTF16TextChar* name, bool16 newLine = kFalse)
{ this->WriteName(name, newLine); }
This function calls itself. It leads to a stack overflow on Windows but the code analyzer in Xcode catches it and reports an error during compilation. It can be changed to:
void WriteName(const UTF16TextChar* name, bool16 newLine = kFalse)
{ this->WriteName(WideString(name), newLine); }
and it will work (it calls the previous function in the file instead).
4
votes
Gábor
shared this idea
The fix for this issue is now available in the latest versions of InDesign – version 16.0 and above.
Please update to this version to get the fix.
—
Adobe InDesign team
-
Gábor commented
No, it's way older than that. I had to fix it in previous SDKs as well (and it might well have been there before I needed to use XML myself).