Changes between Initial Version and Version 5 of Ticket #2540
- Timestamp:
- 06/28/17 15:27:59 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2540
- Property Owner set to abeham
- Property Status changed from new to reviewing
- Property Summary changed from Exception is thrown when setting a new DoubleMatrix for parameter VelocityBounds in the SwarmUpdater to StringConvertibleMatrixView may throw an exception if it is reused
- Property Milestone changed from HeuristicLab 3.3.14 to HeuristicLab 3.3.15
-
Ticket #2540 – Description
initial v5 1 T o reproduce:1 This problem first appeared when changing a parameter of the PSO. To reproduce: 2 2 3 3 1. Open the PSO sample … … 6 6 7 7 A workaround exists, if the view is switched to another parameter and then back to the VelociyBounds parameter the matrix can be set without error. 8 9 Explanation: The ViewHost caches the current view. So after clearing the old matrix, its view as well as the matrix are still present in memory, but the view is hidden. When a new matrix is created, the view is reused again. When the Content property is changed UpdateData is called and there the non-empty collection of columns of this view are cleared. This triggers a cell validating event. The event however is canceled as it does not address a valid cell (the new DoubleMatrix doesn't have rows or columns). When UpdateData continues to clear the rows the datagridview complains that there are cells that are not comitted.