I got a new error message for you:
Code: Select all
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
at Sudoku.Grid.LoadFile(String path)
at Sudoku.Form1.MenuOpen_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I entered the numbers for a sudoku, then saved it. Before the save dialog appeared I was twice (is this normal?) notified that it could not be solved. After saving (with Save..., not Save As...) the grid was automatically cleared (is this normal?). I realized that it was the wrong type of sudoku, so I changed to X-Sudoku. Then I reopened the saved sudoku, and that's when the error occured.
Thanks a lot.
Peter