What gives Works fine in vs2003 but not in vs2005 with current version of DirectX. Any ideas and directions would be appreciated.
<vs 2003>
Dim vid As New Microsoft.DirectX.AudioVideoPlayback.Video("C:\Temp\u.mwv")
<Vs 2005>
Dim vid As New Microsoft.DirectX.AudioVideoPlayback.Video("C:\Temp\u.mwv")
<Error message>
DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.

Video on 2005 WinForm
sr101880