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?
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.