Wednesday, April 6, 2011

Music player in C#

I was trying to make a music player using C#.I using a QuartzTypeLib.dll which is present in the Windows XP. I get stuck when i click on the play button it plays the music very well and make main thread in a hung up state, so i play the music in other thread n still i am facing the same problem. Any suggestion Please.

From stackoverflow
  • From what I can tell, the whole control would need to be created and initialised in another thread - ie, not just the Play() call.

    Nipun : then every click on the button has to divert to the same thread?
    Lucas Jones : Yep. You should use delegates and Invoke() them so that it's thread-safe.

0 comments:

Post a Comment