Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# and the media player

C# and the media player

Scheduled Pinned Locked Moved C#
csharpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Humberto Mariles
    wrote on last edited by
    #1

    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..

    P L B 3 Replies Last reply
    0
    • H Humberto Mariles

      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..

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • H Humberto Mariles

        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..

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • H Humberto Mariles

          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..

          B Offline
          B Offline
          BenScharbach
          wrote on last edited by
          #4

          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

          H 1 Reply Last reply
          0
          • B BenScharbach

            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

            H Offline
            H Offline
            Humberto Mariles
            wrote on last edited by
            #5

            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!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups