Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8595621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:28:46+00:00 2026-06-12T00:28:46+00:00

I am creating a lot of Powerpoint Slides in a loop, using Interop and

  • 0

I am creating a lot of Powerpoint Slides in a loop, using Interop and VB.NEt 4.0 and I have trouble solving a strange powerpoint crash.

The creation of slides works well in most cases, but sometimes Powerpoint runs into a problem of its own and stops working properly.
Most of the times it just stops responding oder crashes immediately. Detecting this failure is easy, just evaluate the H_Result. But sometimes there is a more challenging failure: Powerpoint stops responding but does not throw an exception. It simply stops working until somebody manually tries to push a button in Powerpoint, which will generate an exception.
But if nobody pushes this button, Powerpoint will stay frozen indefinitely. Due to this condition, my code will never have a chance to evaluate the problem. This is especially annoying if you want to create a huge number of Slides at night and it stops after Slide 50. Does anybody have an idea how to solve this problem. This whole program runs in an Backgroundworker – so maybe my main thread can ask the bgw every minute or so “are you still alive?” But how to implement this.

Below is a simple Outline of the Backgroundworkercode.

Basically, it’s look like this:

Dim SlideNumber as Integer =0
Dim PowerpointHasCrashed as Boolean
Dim Slide as pptns.Slide

do while SlideNumber<ListOfSlidesTobeCreated.Count-1 and PowerpointHasCrashed =False

try
   DoStuffWithSlide(ListOfSlidesTobeCreated(SlideNumber))
catch ex as exception
   If ex.message like PowerPointFailue then
      PowerpointHasCrashed =True
   End If    
end try

SlideNumber +=1
end while

If PowerpointHasCrashed =true then
SlideNumber -=1
'Do some Stuff to repair the Damage and start the loop again.
End If
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:28:48+00:00Added an answer on June 12, 2026 at 12:28 am

    After some struggle, i simply used the Backgroundworker.Reportsprogress sub to set a datetime variable to now.
    Every 3 minutes a timer checks this variable, if this variable is older than 5 minutes, Powerpoint will be killed and restartet.
    Because every finished slides causes reportsprogress to increase, this works very well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have run into a strange problem, i am creating a lot of dynamically
Hi i have heard lot about using frameworks for creating native app .i want
I have researched a lot about creating my own app for android with a
i have seen a lot of screencasts where the author is creating methods with
I'm currently creating a lot of classes that will access database using a connection
I have a PERL script that is creating a lot of sockets (around 700
I am creating a .NET application (C#) that needs to use a lot of
I have a script that is creating a lot of configurable products and their
Hey I have tried a lot creating spree extension , but after weeks efforts
I've been creating a lot of my own custom attributes in my XHTML documents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.