Solved

Why does running Dual Monitor break my C# Video Application?

Posted on 2007-11-26
10
720 Views
Last Modified: 2013-12-16
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
Comment
Question by:VirtueTech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20351876
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
 

Author Comment

by:VirtueTech
ID: 20352045
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
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20352102
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
Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

 

Author Comment

by:VirtueTech
ID: 20352111
Maybe. I'm not familiar with starting my app in the "extended" part of my monitor. I'll have to look into it.
0
 
LVL 12

Assisted Solution

by:andrewjb
andrewjb earned 100 total points
ID: 20356496
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
 

Author Comment

by:VirtueTech
ID: 20360657
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
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20360735
even worst, surely your h.264 is sending the video directly to the primary video card.
0
 

Author Comment

by:VirtueTech
ID: 20409371
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
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 400 total points
ID: 20409406
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
 

Author Comment

by:VirtueTech
ID: 20412593
yeah...I have...thanks for your comments everyone.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question