I'm using the iTunes SDK in Visual C#, and it's going great except for the event handling.
I've seen the following code a million times:
-
using iTunesLib;
-
...
-
iTunesApp app = new iTunesAppClass();
-
app.OnPlayerPlayEvent += new _IiTunesEvents_OnPlayerPlayEventEventHandler(app_OnPlayerPlayEvent);
-
...
-
public void app_OnPlayerPlayEvent(object iTrack)
-
{
-
...
-
}
-
And no matter how I work with it, it's still not working. At least not most of the time. It will work if I put a breakpoint on app_OnPlayerPlayEvent and then execute it up to the breakpoint. At this point, I get an error saying that all these various member functions have been disabled because another method timed out. I continue execution and it works, but only about 20% of the time. It likes to get to the breakpoint and then not execute any of the code inside of the function.
Is anyone else having similar problems?