Exception when save doc-file to stream with TrackRevisions=true

Hi, i use Aspose.Words to set TrackRevisions to true and when i tried to save changes to stream i got this error:

Item has already been added. Key in dictionary: ‘3’ Key being added: ‘3’ at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at x76fe6816117c4e2b.x969176180ebcefda.x1ff8ac05a72bd9dd(Int32 x18d1054d82981887, EditableRangeEnd x2d1816cbc3a2f21e) at x76fe6816117c4e2b.x969176180ebcefda.x30b757ee5a69bf66(x969176180ebcefda x50a18ad2656e7181, Int32 x03d82212f016d5f9, Int32 x3e4b0446c1da5921) at x9e260ffa1ac41ffa.xe397b5e25a350375.x21cdf734a8c07d82() at x9e260ffa1ac41ffa.xe397b5e25a350375.x8ffe90e7fbccfccd(Int32 x65533babc4098e1c) at x9e260ffa1ac41ffa.x163859bfa28558c4.x160a0bf4de8f6bd0() at x9e260ffa1ac41ffa.x163859bfa28558c4.x8cac5adfe79bc025(x8556eed81191af11 x5ac1382edb7bf2c2) at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)

Here is a code:

doc.TrackRevisions = true;
MemoryStream resultStream = new MemoryStream();
SaveFormat saveFormat = SaveFormat.Doc;
if (extension == “docx”)
saveFormat = SaveFormat.Docx;
if (extension == “docm”)
saveFormat = SaveFormat.Docm;
doc.Save(resultStream, saveFormat);

The file that reproduces the error in the attachment
Hi Sergey,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.3.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-10013. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-10013) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.