|
|
This is probably an error on my part. I'm calling Stop(), then Dispose(), then setting my asioOut instance to null all one line after the other. What do I have to do with callbacks to properly dispose of my asioOut instance?
Here's the error message:
A callback was made on a garbage collected delegate of type 'NAudio!NAudio.Wave.Asio.ASIOCallbacks+ASIOAsioMessageCallBack::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be
kept alive by the managed application until it is guaranteed that they will never be called.
|
|
Coordinator
Nov 14, 2012 at 5:46 AM
|
I'd suggest waiting for the PlaybackStopped event to arrive before calling Dispose
|
|
|
|
markheath wrote:
I'd suggest waiting for the PlaybackStopped event to arrive before calling Dispose
That should do the trick. Thank you.
|
|