locked
How to get the Media Foundation trace messages for Windows Store Apps?

Answers

All replies

  • Hello,

    You should be able to use MFTrace to attach to your WSA.

    mftrace.exe -a wmplayer.exe
    mftrace.exe -a 9132

    http://msdn.microsoft.com/en-us/library/ff685370(v=vs.85).aspx

    I hope this helps,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, November 15, 2012 10:51 PM
    Moderator
  • Yes. With -a arguments, I can get the trace log. Than you.

    Bug, the output message do not contain the message that I try to produce in Driver MFT with function wprintf.  

                           CHK_LOG_BRK(pSourceAttributes->GetUnknown(MF_DEVICESTREAM_EXTENSION_PLUGIN_CONNECTION_POINT, IID_PPV_ARGS(&pUnk)));
    			wprintf(L"Query Interface OK. \n");

    Set '-l Level=16', The wprintf information cannot show in mftrace either.

    Are the wprintf messages in the Driver MFT samples belong to mftrace message?  Need I provide configuration file for MFtrace.exe to get the message?



    Friday, November 16, 2012 3:28 AM
  • Using OutputDebugStringA works for me.

    For ex:
        CHAR g_szTrace[1024];
        sprintf_s(g_szTrace, ARRAYSIZE(g_szTrace), "Blah = %d", someint);
        OutputDebugStringA(g_szTrace);

    Check this blog post for more effective ways of tracing your code.

    http://blogs.msdn.com/b/mf/archive/2011/01/20/using-mftrace-to-trace-your-own-code.aspx


    Thanks,

    Nishant

    http://www.realityenhanced.com

     

    Friday, December 21, 2012 9:37 PM