AccessViolationException when call PlayerLoad()
|
24-02-2015, 12:37 AM
(This post was last modified: 24-02-2015 12:53 AM by feanaro100.)
Post: #1
|
|||
|
|||
AccessViolationException when call PlayerLoad()
Hi,
It's that same German again, this time with another problem. I managed to get all the events up and working. After that I created the buffering and playback mechanics. This method starts the playback of a specific song. I've placed it on it's own thread because of the AutoResetEvent that blocks the thread until the Track has been loaded. As you can see I tried to mitigate this problem by unloading the track before re-creating the buffer. This didn't help at all. Code: public void playTrack(string track) The AccessViolationException occurs on line 4 of this piece of code within GeneratedCode.cs. This only happens after I try to play a second song. I also tried waiting until the first song was done playing, that didn't change anything though. It sometimes happens that I can play the second track but then on the third track it throws the AccessViolationException. Some other times it throws the exception whilst loading the first track. Very weird. Code: public void PlayerLoad(Track @track) I thought it couldn't hurt to put in the SpotifySessionListener callbacks, it might help you come to a more complete picture of the situation. Code: public override void GetAudioBufferStats(SpotifySession session, out AudioBufferStats stats) If you need any more information or explanation, I'd be happy to supply it! |
|||
26-02-2015, 01:59 PM
Post: #2
|
|||
|
|||
RE: AccessViolationException when call PlayerLoad()
On StackOverflow Andreww has helped me solve this issue. You might want to take a look there for a possible answer.
|
|||
« Next Oldest | Next Newest »
|