Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Mar 22, 2023 8:07 am

Hi,

I am getting this ObjectDisposedException error when creating a presentation.

Code: Select all
var presentation = new Spire.Presentation.Presentation();  // occurred

var presentation = new Spire.Presentation.Presentation(path, FileFormat.Pptx2013);  // occurred

using (var presentation = new Spire.Presentation.Presentation())  // occurred
{
}



Why is the error occurring?
(Thrown on FirstChanceException)


Environment
- Windows 11
- WPF(.NET 6.0)
- Spire.Office 8.1.1

KyungHyunRoh
 
Posts: 8
Joined: Tue Jun 28, 2022 6:02 am

Thu Mar 23, 2023 6:08 am

Hi,

Thanks for your inquiry.
I did an initial test with your version and the latest Spire. Office, but I did not reproduce your issue, there is no error occurred. To help us do an accurate investigation, could you please provide us with the following messages? You can send them to us via email (support@e-iceblue.com) or attach them there. Thanks for your corporation.
1) your region setting (E.g., China, Chinese).
2) your test project.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Wed Jun 19, 2024 6:06 am

Hello,

Thanks for your message.
Since our internal code uses the try{} catch(){} code block to catch possible exceptions, once an exception is caught, the "FirstChanceException" event will be triggered to call the "CurrentDomain_FirstChanceException" method. But, we have already handled this part of the exception in advance, so it will not affect the normal execution of your program. If you have any further questions, please feel free to write to us.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Presentation