Page 1 of 1

Sudocue 2.2.0.0 - Nasty undo bug re. digit placement

Posted: Sat Dec 09, 2006 6:38 pm
by PsyMar
Just downloaded it today, and I'm getting a nasty bug. Specifically, if a cell has a value already placed in it, and I place another value in it (or even if I just accidentally place the same value twice), I get a long and complex error message, I can't undo the move, and I can't make any further moves on the puzzle or download a new puzzle -- I have to close sudocue. If it matters, I'm using ctrl-z to undo.

As a programmer myself, I know saying "there's an error" isn't helpful, so here's a transcript of the error message:

Code: Select all

Error in ProcessCmdKey
System.InvalidOperationException: Operation is not valid due to the current state of the object. 
at Sudoku.Cell.SetValue(Digit NewDigit, CellStatus NewStatus, UserMove um
at Sudoku.Effect.Undo()
at Sudoku.UserMove.Undo()
at Sudoku.Grid.Undo()
at Sudoku.Form1.MenuUndo_Click(Object Sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.ShortcutClick()
at System.Windows.Forms.Menu.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
at Sudoku.Form1.ProcessCmdKey(Message& msg, Keys keyData)

Posted: Sat Dec 09, 2006 7:20 pm
by Ruud
Thanks for reporting this bug.

Try not to make any mistakes until I fixed it. :)

Ruud