Free cookie consent management tool by TermsFeed Policy Generator

Changes between Initial Version and Version 5 of Ticket #2540


Ignore:
Timestamp:
06/28/17 15:27:59 (7 years ago)
Author:
abeham
Comment:

Reviewed r15074: ok.

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 To reproduce:
     1This problem first appeared when changing a parameter of the PSO. To reproduce:
    22
    33 1. Open the PSO sample
     
    66
    77A 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
     9Explanation: 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.