C# and the media player
-
Aug-03-2017 Hi everybody and thanks in advance. I'm writing my own media player using c# and the windows media player. It's all going ok while working in the VS2013 but when I tried to share the resulting .exe file, the application don't start, don't display anything, don't do anything... Am I missing something..? Any ideas please... Thank you all..
-
Aug-03-2017 Hi everybody and thanks in advance. I'm writing my own media player using c# and the windows media player. It's all going ok while working in the VS2013 but when I tried to share the resulting .exe file, the application don't start, don't display anything, don't do anything... Am I missing something..? Any ideas please... Thank you all..
Have a look in the event log see if anything is being written there. That's generally the best place to start hunting for clues.
This space for rent
-
Aug-03-2017 Hi everybody and thanks in advance. I'm writing my own media player using c# and the windows media player. It's all going ok while working in the VS2013 but when I tried to share the resulting .exe file, the application don't start, don't display anything, don't do anything... Am I missing something..? Any ideas please... Thank you all..
Hi, As soon as you rely on external components (i.c. WMP) several things could go wrong: WMP may not be installed, or it may be disabled (maybe this[^] could help), or you are trying to use a WMP browser plug-in that isn't installed (possibly by using the WebBrowser Control). As such possibilities exist, your code should be such that it gracefully degrades, so the least you should do is catch exceptions and report to the user in functional terms; what I tend to always do is include a log facility that reports to the programmer in technical terms. Furthermore, if you were to use some operation that may never terminate, you should figure out a way to give it a timeout anyway. FWIW: if you access Controls on a thread that didn't create them, all kind of weird things may happen, and not necessarily in a reproducible way. Hope this helps, :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
Aug-03-2017 Hi everybody and thanks in advance. I'm writing my own media player using c# and the windows media player. It's all going ok while working in the VS2013 but when I tried to share the resulting .exe file, the application don't start, don't display anything, don't do anything... Am I missing something..? Any ideas please... Thank you all..
I believe you can also get to the Event-Logs in windows via Visual Studios Env; which is better, since it groups up items for you. The path I use is Server Explorer>Servers>[Computer]>Event Logs>Application>[Your App]. :)
Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach
-
I believe you can also get to the Event-Logs in windows via Visual Studios Env; which is better, since it groups up items for you. The path I use is Server Explorer>Servers>[Computer]>Event Logs>Application>[Your App]. :)
Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach
Hi all of you... Thanks for your replies, still can't figure out what's going on but yes, I'm looking into the log.. It's helping... thanks!