VirtueTech
asked on
Why does running Dual Monitor break my C# Video Application?
Hello everyone,
Does anyone have any insight as too why my C# .NET 2.0 application cannot display it's video when moved over to a Dual monitor?
The video shows fine when on the main display, but once moved over to the Second display/Dual monitor the video dissappears. The application is still running, but no video. When I move the application back to the main display the video appears instantly.
Notes:
- The applicaton is a Visual C# .NET 2.0 app
- The video comes from a C++ DLL that was marshalled to communicate with it. However this same problem occured in the old C++ application that used the same video DLL's, so I don't think it has anything to do with the DLL's.
- I'm using panels to display the video in. I give the DLL the panels HANDLE and it sends the vide there.
It's like the application forgets what the panel's HANDLE was.
Any information you have is useful at this point. Thanks. :)
Does anyone have any insight as too why my C# .NET 2.0 application cannot display it's video when moved over to a Dual monitor?
The video shows fine when on the main display, but once moved over to the Second display/Dual monitor the video dissappears. The application is still running, but no video. When I move the application back to the main display the video appears instantly.
Notes:
- The applicaton is a Visual C# .NET 2.0 app
- The video comes from a C++ DLL that was marshalled to communicate with it. However this same problem occured in the old C++ application that used the same video DLL's, so I don't think it has anything to do with the DLL's.
- I'm using panels to display the video in. I give the DLL the panels HANDLE and it sends the vide there.
It's like the application forgets what the panel's HANDLE was.
Any information you have is useful at this point. Thanks. :)
ASKER
Interesting...
I gave that a shot...it didn't make a difference. I started the application. Moved the application over to the second/dual monitor view. Then started the Video. It didn't show the video.
Thanks for the reply though.
any other ideas?
I gave that a shot...it didn't make a difference. I started the application. Moved the application over to the second/dual monitor view. Then started the Video. It didn't show the video.
Thanks for the reply though.
any other ideas?
make some trick to start the application in the second monitor, without moving. And test.
Maybe the video library is initializing with the first monitor parameters. Just a hunch.
Maybe the video library is initializing with the first monitor parameters. Just a hunch.
ASKER
Maybe. I'm not familiar with starting my app in the "extended" part of my monitor. I'll have to look into it.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Actually the video comes from a H.264 card, which pushes through a C++ DLL. I tell the DLL what the HANDLE of my windows form control is, and it uses that HANDLE to play the video on.
I don't have any DirectX API usage in my application.
I don't have any DirectX API usage in my application.
even worst, surely your h.264 is sending the video directly to the primary video card.
ASKER
I believe it does go directly to the video card, it is handled from the DLL we have. Do you have any other ideas or things I might be able to do to put a finger on why it doesn't work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yeah...I have...thanks for your comments everyone.
If your video is played with some hardware-related technique like DirectX, you cannot switch while running.