From: <Hai...@co...> - 2007-06-14 14:36:37
|
Hello, I created a graphic library use CsGL. It works fine in some applications. But I get the following exeption in one of the applications. Does any body knows the solution? CsGL.Util.NativeException was unhandled Message="The pixel format is invalid.\r\n" Source="csgl" ID=2000 StackTrace: at CsGL.Util.NativeException.Assert() in C:\projets\csgl_1.x\src\CSharp\CsGL\Util\NativeException.cs:line 68 at CsGL.Util.NativeException.AssertThrow(String msg) in C:\projets\csgl_1.x\src\CSharp\CsGL\Util\NativeException.cs:line 76 at CsGL.OpenGL.OpenGLContext.GrabContext(IntPtr gdi, IntPtr glctxt) at CsGL.OpenGL.OpenGLContext.Grab() in C:\projets\csgl_1.x\src\CSharp\CsGL\OpenGL\OpenGLContext.cs:line 226 at CsGL.OpenGL.OpenGLControl.OnPaint(PaintEventArgs pevent) in C:\projets\csgl_1.x\src\CSharp\CsGL\OpenGL\OpenGLControl.cs:line 149 at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at BeckmanCoulter.Tools.DataGenerator2.Program.Main() in K:\hjia_algorithms_tools_datagenerator_scr8\ALGORITHMS\Tools\DataGenerator2\Program.cs:line Thanks for any help. Haiping mailgatemia2 made the following annotations---------------------------------------------------------------------This message contains information that may be privileged or confidential and is the property of Beckman Coulter, Inc. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- |