We had been using Aspose.PowerPoint v188.8.131.52 and recently upgraded to Aspose.Slides v184.108.40.206 (the latest version). Our application is multithreaded generating PowerPoint documents on background threads. Since the upgrade we get an error “Object is currently in use elsewhere” if we revert the old version the error is gone, nothing changed in our code other then the namespace from PowerPoint to Slides. Each thread runs in a bubble, no objects are shared between them. They create there own Presentation objects.
Thank you for your time,
Here is the call stalk:
System.InvalidOperationException was unhandled by user code
Message="Object is currently in use elsewhere."
at System.Drawing.Graphics.MeasureString(String text, Font font, PointF origin, StringFormat stringFormat)
at ..( , , Portion , Single& )
at ..(Boolean )
at ...ctor(Graphics Graphics, Paragraphs Text, Fonts, Single Width, Boolean WrapText, AnchorText Anchor, Tabs Tabs, Color BackgroundColor)
at Aspose.Slides.Presentation.(Boolean )
at Aspose.Slides.Slide.(Presentation )
at Aspose.Slides.Presentation.(Slide , Presentation , SortedList )
at Aspose.Slides.Presentation.CloneSlide(Slide srcSlide, Int32 position)