Tech Off Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Standard User Analyzer

Back to Forum: Tech Off
  • User profile image


    I trying out the Standard User Analyzer on Vista 5728 with my C++ application.

    When running under the Analyzer, a call to:

    hr = CoCreateInstance( CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, IID_IGraphBuilder, (void **)&pGraph );

    when invoked in the startup sequence of my app fails with "Access is denied".

    If I then invoke this sometime later in this same run of the application, this call succeeds.

    Any ideas why this might be?

    (When I run the app outside of the Analyzer, this first call to CoCreateInstance does succeed.)

    I do call CoInitialize(0) before calling this, by the way.


  • User profile image

    You must call CoInitialize or CoInitializeEx before you call any other COM API, including of course CoCreateInstance.

  • User profile image


    Note that I do call CoInitialize().

    This seems to be some peculiarity of being sublaunched from the Standard User Analyzer.


Conversation locked

This conversation has been locked by the site admins. No new comments can be made.