Ejemplo n.º 1
0
        /// <summary>
        /// The XServer error handler, invoked each time a X/GLX routine raise an error.
        /// </summary>
        /// <param name="displayHandle">
        /// A <see cref="IntPtr"/> that specifies the handle of the display on which the error occurred.
        /// </param>
        /// <param name="error_event">
        /// A <see cref="Glx.XErrorEvent"/> that describe the error.
        /// </param>
        /// <returns>
        /// It returns always 0.
        /// </returns>
        private static int XServerErrorHandler(IntPtr displayHandle, ref Glx.XErrorEvent error_event)
        {
            lock (_DisplayErrorsLock) {
                _DisplayErrors[displayHandle] = new GlxException(displayHandle, ref error_event);
            }

            return(0);
        }
		/// <summary>
		/// The XServer error handler, invoked each time a X/GLX routine raise an error.
		/// </summary>
		/// <param name="displayHandle">
		/// A <see cref="IntPtr"/> that specifies the handle of the display on which the error occurred.
		/// </param>
		/// <param name="error_event">
		/// A <see cref="Glx.XErrorEvent"/> that describe the error.
		/// </param>
		/// <returns>
		/// It returns always 0.
		/// </returns>
		private static int XServerErrorHandler(IntPtr displayHandle, ref Glx.XErrorEvent error_event)
		{
			lock (_DisplayErrorsLock) {
				_DisplayErrors[displayHandle] = new GlxException(displayHandle, ref error_event);
			}

			return (0);
		}