Powerpoint's Application object fails with -2147023179

Question Powerpoint's Application object fails with -2147023179

  • mardi 31 juillet 2012 16:35
     
     

    In our application, powerpoint object is instantiated using the below code. This works fine under normal circumstances but when run *under stress* that is the object is created, the presentation exported and then the object is released continuously, the CreateInstance calls fails with -2147023179 sometimes. Even after a failure, the next attempt succeeds. Also at a time the stress keeps running from 3 user account in Windows Terminal Server 2008 R2 server.

    PowerPoint::_ApplicationPtr spPpApp;
    HRESULT hr = spPpApp.CreateInstance(__uuidof(PowerPoint::Application));
    if (FAILED(hr))
    {
    return 1;
    }

Toutes les réponses

  • jeudi 2 août 2012 10:46
     
     

    Hi Ramkey_T,

    What do you mean by under stress? Could you please provide more code of your project?

    regards,

    Wilson