Unhandled Error *FIXED*

Started by DrewCCU, Wed 16/06/2010 00:47:53

Previous topic - Next topic

DrewCCU

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 GetSpriteHeight(Int32 )
  at AGS.Native.NativeMethods.GetActualSpriteHeight(Int32 spriteSlot)
  at AGS.Editor.NativeProxy.GetActualSpriteHeight(Int32 spriteSlot)
  at AGS.Editor.ObjectsEditorFilter.GetSpriteHeightForGameResolution(Int32 spriteSlot)
  at AGS.Editor.ObjectsEditorFilter.PaintToHDC(IntPtr hDC, RoomEditorState state)
  at AGS.Editor.RoomSettingsEditor.bufferedPanel1_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)

------------------------------------------------------------------------------------------------

Don't know exactly what caused this.  I just know that whenever i try to load a room in my game and edit objects I get this error.

I've searched through the forums for similar problems but no one seems to be giving any answers out.  What's the deal?
"So much of what we do is ephemeral and quickly forgotten, even by ourselves, so it's gratifying to have something you have done linger in people's memories."
-John Williams

DrewCCU

I figured out that I had to actually copy/replace the sprite file (acsprset.spr) from a backup copy of my game into the current game.  This fixed the problem ... however i have to reimport some images.
"So much of what we do is ephemeral and quickly forgotten, even by ourselves, so it's gratifying to have something you have done linger in people's memories."
-John Williams

SMF spam blocked by CleanTalk