Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Grim on Thu 12/11/2009 17:21:43

Title: And evrything crashed.... anyone knows what I did wrong?
Post by: Grim on Thu 12/11/2009 17:21:43
Error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Version: AGS 3.1.2.82

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at GetRelativeSpriteWidth(Int32 )
   at AGS.Native.NativeMethods.GetRelativeSpriteWidth(Int32 spriteSlot)
   at AGS.Editor.NativeProxy.GetRelativeSpriteWidth(Int32 spriteSlot)
   at AGS.Editor.ViewPreview.previewPanel_Paint(Object sender, PaintEventArgs e)
   at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
   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.ScrollableControl.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Now, what has just happened to my AGS?
Title: Re: And evrything crashed.... anyone knows what I did wrong?
Post by: TerranRich on Thu 12/11/2009 17:54:38
Errors and crash reports should go in the main Technical Forum. CJ's really the only person who can tell you what went wrong, with a few exceptions perhaps.
Title: Re: And evrything crashed.... anyone knows what I did wrong?
Post by: RickJ on Fri 13/11/2009 18:35:08
Quote
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
.. or that you are attempting to use more memory than has not been allocated.   It seems like you are working with dynamic sprites and the drawing commands?  If so I would check to see if you are deleting  any dynamic sprites  you create when they are no longer needed.  I would expect that if dynamic sprtes are continually created,. eventually an error complaining about memory would be eventually encountered.
Title: Re: And evrything crashed.... anyone knows what I did wrong?
Post by: Pumaman on Mon 16/11/2009 22:45:30
What had you just done when this happened? Had you just imported some new sprites?