Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Crimson Wizard on Fri 19/03/2010 17:56:35

Title: [3.2 RC3] Magic The Gathering makes AGS have critical error... o_0
Post by: Crimson Wizard on Fri 19/03/2010 17:56:35
That's a weird one... but I can reproduce it all the time.

I have AGS 3.2 RC3 opened, and MTG Duel running. If there's a script opened in AGS, switching from AGS to MTG and back 2 times will cause following error:

Version: AGS 3.2.0.98

System.AccessViolationException: Попытка чтения или записи в защищенную память. Это часто свидетельствует о том, что другая память повреждена.
  в ScintillaWin.WndProc(ScintillaWin* , UInt32 iMessage, UInt32 wParam, Int32 lParam)
  в ScintillaWin.SWndProc(HWND__* hWnd, UInt32 iMessage, UInt32 wParam, Int32 lParam)
  в System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  в System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
  в System.Windows.Forms.Control.DefWndProc(Message& m)
  в System.Windows.Forms.Control.WndProc(Message& m)
  в Scintilla.ScintillaControl.WndProc(Message& m)
  в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Is this AGS bug, or MTG bug? I never had similar troubles with switching to other windows. Currently have no clues what's so special about MTG Duel window.
Title: Re: [3.2 RC3] Magic The Gathering makes AGS have critical error... o_0
Post by: Pumaman on Sun 21/03/2010 14:37:44
Strange, has anyone else seen anything like this happen?

Is MTG a full-screen game? It's possible that for some reason the constant resolution changing is causing a problem in the AGS text editor.