Solved

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

Posted on 2007-11-26
10
713 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
  • 5
  • 4
10 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:VirtueTech
Comment Utility
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
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:VirtueTech
Comment Utility
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
Comment Utility
even worst, surely your h.264 is sending the video directly to the primary video card.
0
 

Author Comment

by:VirtueTech
Comment Utility
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
Comment Utility
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
Comment Utility
yeah...I have...thanks for your comments everyone.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now