[3.1.2] Saving project exception after cancelled Vista shutdown

Started by Crimson Wizard, Tue 06/10/2009 14:15:25

Previous topic - Next topic

Crimson Wizard

This is quite an exotic one. Found in 3.1.2, haven't checked 3.2 RC yet.

I was shutting down my laptop with Vista, while AGS Editor was still open. Vista told me there are applications that are still working and gave an option to cancel shutdown to close them properly. I hit "Cancel", opened AGS window, hit "Exit". AGS suggested I save a game. I hit "Yes". Following exception occured:

Code: ags

Error: В экземпляре объекта не задана ссылка на объект.
Version: AGS 3.1.2.82

System.NullReferenceException: В экземпляре объекта не задана ссылка на объект. ---> System.NullReferenceException: В экземпляре объекта не задана ссылка на объект.
   в AGS.Editor.Components.SourceControlComponent.AGS.Types.IPersistUserData.Serialize(XmlTextWriter writer)
   в AGS.Editor.ComponentController.NotifySavingUserData(XmlTextWriter writer)
   в AGS.Editor.ApplicationController._events_SavingUserData(XmlTextWriter writer)
   в AGS.Editor.EditorEvents.OnSavingUserData(XmlTextWriter writer)
   в AGS.Editor.AGSEditor.SaveUserDataFile()
   в AGS.Editor.AGSEditor.SaveGameFilesProcess(Object parameter)
   в AGS.Editor.BusyDialog.RunHandlerOnThread()
   --- Конец трассировки внутреннего стека исключений ---
   в AGS.Editor.BusyDialog.Show(String message, ProcessingHandler handler, Object parameter)
   в AGS.Editor.AGSEditor.SaveGameFiles()
   в AGS.Editor.GUIController.QueryWhetherToSaveGameBeforeContinuing(String message)
   в AGS.Editor.GUIController._mainForm_OnEditorShutdown()
   в AGS.Editor.frmMain.frmMain_FormClosing(Object sender, FormClosingEventArgs e)
   в System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
   в System.Windows.Forms.Form.WmClose(Message& m)
   в System.Windows.Forms.Form.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)


Error translates to english like "There's no reference to object in the instance of an object.". Sounds weird for me, but that's literal translation. Then again, I am not much profecient with C#.

Pumaman


SMF spam blocked by CleanTalk