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. :)
VirtueTechAsked:
Who is Participating?
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
I think you have to ask to the DLL provider about the specific behaviour of it. This problem is not related to C# or .net.
0
 
Jaime OlivaresSoftware ArchitectCommented:
You say you move the video while playing?
If your video is played with some hardware-related technique like DirectX, you cannot switch while running.
0
 
VirtueTechAuthor Commented:
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?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Jaime OlivaresSoftware ArchitectCommented:
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.
0
 
VirtueTechAuthor Commented:
Maybe. I'm not familiar with starting my app in the "extended" part of my monitor. I'll have to look into it.
0
 
andrewjbConnect With a Mentor Commented:
Can you play the video at all (using some other s/w) on the second monitor? In case it doesn't have DirectX installed at all....
0
 
VirtueTechAuthor Commented:
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.
0
 
Jaime OlivaresSoftware ArchitectCommented:
even worst, surely your h.264 is sending the video directly to the primary video card.
0
 
VirtueTechAuthor Commented:
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?
0
 
VirtueTechAuthor Commented:
yeah...I have...thanks for your comments everyone.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.