Typos when typing in initial values for T for a Column crash DWSIM
Simulate chemical processes using advanced thermodynamic models
Brought to you by:
danwbr
Typing in "370]" instead of "370" in the Initial Estimates tab of the Column Configuration group of the Distillation Column object editor results in an unhandled error, Conversion from string "370]" to type 'Double' is not valid.
The trace mentions DWSIM.UnitOperations.EditingForm_Column_InitialEstimates.dgvv_CellValueChanged.
This shouldn't happen. Typos should just be ignored, or cause the cell to reset to a default value.
I believe that the error message which is displayed in the exception window is enough to tell the user what went wrong.
No, the problem is that the original value is deleted and replaced with the new invalid string.
An exception message is not user friendly, but even if you display one, you should throw out the new value and keep the original one.
Fixed in commit https://github.com/DanWBR/dwsim4/commit/bd1df60fc59c16ab1250d0805e02564e8434311b