locked
MFStartup in C++ CLR crashes calling from .NET RRS feed

  • Question

  • I have a working code in C++ CLR. I then compile it as DLL and reference from a .NET application.

    But when I run it, it crashes at MFStartup. In application event log, it says ntdll.dll crashed with error code of 0xC0000005, which is Access Violation.

    I'm developing under Visual Studio 2008 SP1, .NET Framework 2.0 and Windows 7 RTM.

    ps. some times after I reboot, it works for one time.
    Thursday, September 3, 2009 9:11 PM

Answers

  • You're better off asking that question in the MF.net or DShow.NET forum on SourceForge.  There aren't a lot of .NET experts contributing to the dshow and MF forums here on MSDN.
    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Friday, September 4, 2009 3:02 AM

All replies

  • AFAIK, the MF SDK is not supported using a .NET application.  Have you looked at the MediaFoundation.NET project on SourceForge?
    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Thursday, September 3, 2009 10:05 PM
  • ya, I have. When I started my project, MediaFoundation.NET was last updated in 2007.
    Friday, September 4, 2009 2:25 AM
  • It's an open source project though so you could contribute and extend it where necessary :)
    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Friday, September 4, 2009 2:36 AM
  • I just don't understand. I compile the C++ project as .exe and itself works all fine.

    There's a huge difference between referencing the C++ project from the VB.NET project compared to referencing a standalone DLL?
    Friday, September 4, 2009 2:44 AM
  • You're better off asking that question in the MF.net or DShow.NET forum on SourceForge.  There aren't a lot of .NET experts contributing to the dshow and MF forums here on MSDN.
    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Friday, September 4, 2009 3:02 AM