I have worked with the sample code shared by you and have also worked over your scenario. I have observed growing memory issue but point to consider is that there are 100 slides with 100 large tables in them. I have created an issue with ID SLIDESNET-37614 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.
We are sorry for your inconvenience,
We have investigated your issue and have observed that you are saving the presentation inside a loop that is executing for 100 times. You may please move the following code line out of loop in your code.
//Write PPTX to Disk
pres.Save(dataDir + “StandardTables.pptx”, SaveFormat.Pptx);
After moving this call out the loop profiling shows that Aspose.Slides needs 200 Mb of RAM to perform all operations (creating, manipulating, saving) for presentation with table of 40 rows and 84 columns (it’s a huge one, actually) per slide. So, for presentation with 10 slides it takes 2 Gb of memory, for 100 slides - approximately 20 Gb.
This will certainly improve memory consumption issue. Moreover, we are still working over further improvement of API performance and it is a continual process. We are hopeful to improve the performance of API to a much better standard upcoming product releases till next year mid.
I have observed the issue shared by you and suggest you to please try using Aspose.Slides for .NET assembly available in net2.0_x64 folder of Aspose.Slides package on your end. This will give you additional memory space for your program and will help in avoiding memory exception. Please try using 64 bit dll assembly and also your project compile to x64 as well and then share the feedback.
Thanks Mudassir! It works. Still slow, but it works.
It’s good to know that things have worked on your end. We are continually working on improving API performance and you will find the improvement in coming releases.
I am facing the similar issue with ppts running over 650 slides. I am using 14.8 currently tried using your latest 17.x and it still did not work. Could you please let me know if this is an aspose problem or server issue?
Upto 650 slides its fine and anything over that fails due to memory constraints.
I have observed your comments. Can you please share source presentation along with sample project so that we may further investigate to help you out. I also suggest you to please try using Aspose.Slides for .NET assembly available in net2.0_x64 folder of Aspose.Slides package on your end. This will give you additional memory space for your program and will help in avoiding memory exception. Please try using 64 bit dll assembly and also your project compile to x64 as well and then share the feedback.