dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]Seg fault in System.Drawing.Win32


From: Neil Cawse
Subject: [DotGNU]Seg fault in System.Drawing.Win32
Date: Thu, 10 Jul 2003 16:28:53 -0400

This is the backtrack when running ilrun FormsHello.exe

 

#0  0x0a409b6d in ?? ()

#1  0x77d01a15 in USER32!TranslateMessage () from /cygdrive/c/WINDOWS/system32/user32.dll

#2  0x77d02cb5 in USER32!CharUpperBuffA () from /cygdrive/c/WINDOWS/system32/user32.dll

#3  0x77d058cd in USER32!GetCursor () from /cygdrive/c/WINDOWS/system32/user32.dll

#4  0x77f43868 in ntdll!LdrEnumResources () from ntdll.dll

 

 

Is there anything that looks like it might not be supported yet. Anyone have any ideas??

Tum please can I get your project files for VS they would help! – just zip the whole lot up and email if you can.

 

 

the relevant code is:

 

public bool ProcessEvents(bool waitForEvent)

                  {

                        Win32.Api.MSG message;

                        if (!waitForEvent)

                        {

                              //return false if there is no message or the quit message

                              if (!Win32.Api.PeekMessageA(out message, IntPtr.Zero, 0, 0, Win32.Api.PeekMessageType.PM_NOREMOVE)

                                    || message.message==Win32.Api.WindowsMessages.WM_QUIT)

                                    return false;

                        }

                        //process the message

                        if (Win32.Api.GetMessageA(out message, IntPtr.Zero,0,0)==0)

                              return false; //occurs on WM_QUIT

                        Win32.Api.TranslateMessage(ref message);

                        Win32.Api.DispatchMessageA(ref message); 

                        return true;

                  }

 

 

      [StructLayout(LayoutKind.Sequential)]

      public struct MSG

      {

            public IntPtr hwnd;

            public WindowsMessages message;

            public int wParam;

            public int lParam;

            public int itime;

            public int pt_x;

            public int pt_y;

      }

      public enum WindowsMessages : int

            {

                  WM_CREATE = 0x1,

                  WM_DESTROY = 0x2,

                  WM_ACTIVATE = 0x6,

                  WM_SETFOCUS = 0x7,

                  WM_KILLFOCUS = 0x8,

                  WM_PAINT = 0xF,

                  WM_CLOSE = 0x10,

                  WM_QUIT = 0x12,

                  WM_ERASEBKGND = 0x14,

                  WM_SETTINGCHANGE = 0x1A,

                  WM_SETCURSOR = 0x20,

                  WM_WINDOWPOSCHANGING = 0x46,

                  WM_NCCALCSIZE = 0x83,

                  WM_NCHITTEST = 0x84,

                  WM_NCPAINT = 0x0085,

                  WM_NCACTIVATE = 0x86,

                  WM_KEYDOWN = 0x0100,

                  WM_KEYUP = 0x0101,

                  WM_CHAR = 0x0102,

                  WM_SYSCOMMAND = 0x112,

                  WM_TIMER = 0x0113,

                  WM_MOUSEMOVE = 0x0200,

                  WM_LBUTTONDOWN = 0x0201,

                  WM_LBUTTONUP = 0x0202,

                  WM_LBUTTONDBLCLK = 0x0203,

                  WM_RBUTTONDOWN = 0x0204,

                  WM_RBUTTONUP = 0x0205,

                  WM_RBUTTONDBLCLK = 0x0206,

                  WM_MBUTTONDOWN = 0x0207,

                  WM_MBUTTONUP = 0x0208,

                  WM_MBUTTONDBLCLK = 0x0209,

                  WM_MOUSEWHEEL = 0x020A,

                  WM_XBUTTONDOWN = 0x020B,

                  WM_XBUTTONUP = 0x020C,

                  WM_XBUTTONDBLCLK = 0x020D,

                  WM_SIZING = 0x0214,

                  WM_MOVING = 0x0216,

                  WM_MOUSELEAVE = 0x02A3

 

            }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]