Closed joebananas10 closed 8 years ago
Thank you Ed. I had more than a fewchallenges with those lines of code already :-( The switch to using DataGridView has not been smooth, a complex object to work with. But worthwhile as it leads to MDI history, editing etc possibilities in future. As soon as I figure out the performance problems I will push a new release.
Fixed in this release
Tested out the 1.0.9a code tonight and kept running into unhandled exception errors when the datagrid was empty.
For example. Open the program, connect to comport, press Unlock and then Home. After Home command finishes, change the cbxStateOffset from Metric to Inches. boom, unhandled exception. Quit/close program and restart. Connect, unlock, home, click G55 offset set button. boom unhandled exception.
Running code in the debugger while connected to cnc machine revealed error was thrown right before the _dgview.Refresh() at the end of the UpdateGCodeStatus routine. Specifically, it was thrown on the IF statement in the last ELSE.
I've corrected this by changing it to this,
Can anyone else test this and respond?