I have fixed the issue which .NET win form failed to play video file with COM component windows media player control.
The error was raised while wmp control invokes d3d9.dll ( Direct 3D 9 runtime ) because I checked out in the windows event manager :
Faulting application name: WindowsFormsApp1.exe, version: 1.0.0.0, time stamp: 0xf57ea874Faulting module name: D3D9.DLL, version: 10.0.17763.1075, time stamp: 0x3cad74b1Exception code: 0xc0000005Fault offset: 0x000479ffFaulting process id: 0x1d94Faulting application start time: 0x01d6b2c1a4facaacFaulting application path: C:\Users\A30336\OneDrive\Project\Jack Yeh\YehProject\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exeFaulting module path: C:\Windows\SYSTEM32\D3D9.DLLReport Id: 004f8352-5e8b-4cda-a346-b278d57514dbFaulting package full name:Faulting package-relative application ID:
None of that helped. Still getting error in event viewer but no error from media player or explorer pointing to the problem. Faulting application name: wmplayer.exe, version: 12.0.17134.1, time stamp: 0x854a1b2d Faulting module name: D3D9.DLL, version: 10.0.17134.81, time stamp: 0x8b50c245 Exception code: 0xc0000005 Fault offset: 0x00048c56 Faulting process id: 0x27c8 Faulting application start time: 0x01d4d945d1ae743d Faulting application path: C:\Program Files (x86)\Windows Media Player\wmplayer.exe Faulting module path: C:\Windows\SYSTEM32\D3D9.DLL Report Id: cee54d0d-1896-4c5c-b39f-84fd976be78e Faulting package full name: Faulting package-relative application ID:
Another post helpful in the above thread. He replaced the d3d9.dll and fixed it even both files are identical.
Link you gave me assumes i have access violation which i dont.
Besides windows media player, everything else works, games, 3d modeling software to name a few.
I was able to transfer DLL files from another computer and it fixed the problem.
I had to use Unlocker to delete original once and then place good once inside and reboot.
How ever, upon checking checksum of both and comparing them, they were identical.
I am clueless what went wrong and what fixed it because everytime my computer restarts, system is being restored to its original state. I did disabled that feature while i was replacing DLL's
Not sure what to conclude here.
At first, I supposed the DirectX is broken. or wrong linked library for media player control. I can play video file with Windows Media Player but it failed to play in my win form program media player control. So I downloaded latest DirectX redistribution :
DirectX RunTime_Jun2010_redistDespite it doesn't help. I kept googling and then I got a clue here.
I downloaded and installed the DX Setup app you referenced. The installer reported that it was successful. I restarted my PC, and I still get the same d3d9.dll errors on *any* DX9 app. It turns out, however, I have found the problem. This problem has existed since Win7 was released. d3d9.dll (6.x-10.x) is brittle and poorly written apps can screw with it, causing subsequent dx9 apps to crash. In my case, it was one of the ASUS motherboard monitoring apps that came with my motherboard. Once this app was stopped (it ran fine), other dx9 apps started working perfectly. This was a constant problem for me because I had the monitoring app running on startup.
Solved : I guessed the issue came from wrong file invoking link or broken DLL files. So that I tried to reinstall display chip drivers which contains all the Direct3D or and other related DLLs. My display chip is AMD Radeon HD 8500M/8700M family. So that I checked the AMD website and downloaded , then installed AMD Radeon™ Software Adrenalin 2020 Edition.
Solved : I guessed the issue came from wrong file invoking link or broken DLL files. So that I tried to reinstall display chip drivers which contains all the Direct3D or and other related DLLs. My display chip is AMD Radeon HD 8500M/8700M family. So that I checked the AMD website and downloaded , then installed AMD Radeon™ Software Adrenalin 2020 Edition.
I restarted computer. And open my .NET win form program to play video file with WMP COM component. Eventually it works.