/** * Throws a managed exception if LibVLC has returned a native * unmanaged exception. Clears the native exception. */ public void Raise() { if (raised == 0) { return; } string msg = U8String.FromNative(message); try { if (msg != null) { throw new VLCException(code, msg); } else { throw new VLCException(code); } } finally { LibVLC.ExceptionClear(this); } }
private void Dispose(bool disposing) { LibVLC.ExceptionClear(this); }