The attached project reproduces an issue where, after cloning a slide from an input presentation into an output presentation, an ArgumentOutOfRangeException is thrown when calling Write on the output presentation.
Full exception detail:
System.ArgumentOutOfRangeException was unhandled
Message=Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source=mscorlib
ParamName=index
StackTrace:
at System.Collections.ArrayList.get_Item(Int32 index)
at Aspose.Slides.PictureBullets.get_Item(Int32 index)
at Aspose.Slides.Presentation.a(IDictionary A_0)
at Aspose.Slides.Presentation.b(Boolean A_0)
at Aspose.Slides.Presentation.a(Boolean A_0)
at Aspose.Slides.Presentation.Write(Stream stream)
at AsposePPTIndexOutOfRange.Program.Main(String[] args) in C:\workspaces\SAVO\Scratch\kmillns\AsposePPTIndexOutOfRange\AsposePPTIndexOutOfRange\Program.cs:line 23
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
This is occurring with Aspose Slides 4.3.0
I look forward to your response,
Kyle Millns
kyle.millns@savogroup.com
Product Developer
SAVO