• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 730
  • Last Modified:

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. :)
0
VirtueTech
Asked:
VirtueTech
  • 5
  • 4
2 Solutions
 
Jaime OlivaresCommented:
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
 
Jaime OlivaresCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 
andrewjbCommented:
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 OlivaresCommented:
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
 
Jaime OlivaresCommented:
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
 
VirtueTechAuthor Commented:
yeah...I have...thanks for your comments everyone.
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now