Hello,
We had been using Aspose.PowerPoint v2.0.2.0 and recently upgraded to Aspose.Slides v2.4.14.0 (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,
Stefane
Here is the call stalk:
System.InvalidOperationException was unhandled by user code
Message="Object is currently in use elsewhere."
Source="System.Drawing"
StackTrace:
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.TextFrame.()
at Aspose.Slides.Shape.()
at Aspose.Slides.Rectangle.()
at Aspose.Slides.Shape.()
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)
at ...