Exemplo n.º 1
0
        /**
         * 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);
            }
        }
Exemplo n.º 2
0
 private void Dispose(bool disposing)
 {
     LibVLC.ExceptionClear(this);
 }