locked
MFT crash In Windows 8 RP

    Question

  • I have write and mft in win8 CP, now I have upgrade it to win8 RP

    now the problem is that when I decoder a file and it will be crash after  about 1 minute and a half, everytime.

    error:0xC0000005 Unhandled exception in mfcore.dll! 67595b94()  Access Violation.

    The mft work fine in win32.

    Someone help me!!!

    now I found the problem. when I playback the song. then it will attach the mft dll (DLL_PROCESS_ATTACH)

    but it will detach the dll before decode complete and then will be crash.

    How the dll work in WinRT ?

    BOOL WINAPI DllMain( __in_opt HINSTANCE hInstance, __in DWORD dwReason, __in_opt LPVOID lpReserved )
    {
        if( DLL_PROCESS_ATTACH == dwReason )
        {
            //
            //  Don't need per-thread callbacks
            //
            DisableThreadLibraryCalls( hInstance );
    
            Module<InProc>::GetModule().Create();
        }
        else if( DLL_PROCESS_DETACH == dwReason )
        {
            Module<InProc>::GetModule().Terminate();   // be called before decode complete
        }
    
        return TRUE;
    }


    Wednesday, June 27, 2012 3:37 AM

Answers

All replies

  • Hi troyou,

    I've forwarded this thread to our media specialist, but I'm not quite sure I understand what the problem is that you are asking about. Can you please clarify?

    Thanks,
       Rob

    Thursday, June 28, 2012 2:21 AM
    Owner
  • Hi rob,

    thanks for you answer.

    May I have your email then I can send the code sample to you?

    Thursday, June 28, 2012 5:42 AM
  • See if the fix from the Media team to address a similar issue in the Metro style media samples addresses your problem. The code to fix the problem is in this thread.


    David Lamb


    Thursday, June 28, 2012 5:42 PM
    Moderator
  • thanks David.

    It's very helpful and now it can works:)

    But I want to know that is it a bug of  media foundation,

    or it 's  a bug of MediaExtenstionCPP sample?

    • Edited by troyou Friday, June 29, 2012 2:34 AM
    Friday, June 29, 2012 2:31 AM