Hi there,
I am using this import (Microsoft.DirectX.AudioVideoPlayback) for my audio media application.
Problem is, when it finishes playing via the [.ending] event I move to the next track and it crashes and i get this error:

Wierd thing is, I can here the next track playing whilst i have this error message open. When I close it, it stops playing.
But I also have a button which goes to the next track aswell (same code) and that works fine without the error.
What am i doing wrong?
Thanks.
I am using this import (Microsoft.DirectX.AudioVideoPlayback) for my audio media application.
Problem is, when it finishes playing via the [.ending] event I move to the next track and it crashes and i get this error:

Wierd thing is, I can here the next track playing whilst i have this error message open. When I close it, it stops playing.
But I also have a button which goes to the next track aswell (same code) and that works fine without the error.
What am i doing wrong?
Thanks.