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
![](https://secure.gravatar.com/avatar/400430814c7ae4d1bc8dac53f1cc593f?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
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).