Changeset 13441


Ignore:
Timestamp:
12/07/15 17:37:45 (4 years ago)
Author:
gkronber
Message:

#2071

  • added statement to set number of rows parsed which was lost in one of the previous changes
  • added an necessary invoke call in RegressionInstanceProviderView
Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/RegressionInstanceProviderView.cs

    r13414 r13441  
    6464          try {
    6565            GenericConsumer.Load(instance);
    66             instancesComboBox.SelectedIndex = -1;
    6766          } catch (IOException ex) {
    6867            ErrorWhileLoading(ex, importTypeDialog.Path);
    6968          } finally {
     69            Invoke((Action)(() => instancesComboBox.SelectedIndex = -1));
    7070            mainForm.RemoveOperationProgressFromContent(activeView.Content);
    7171          }
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TableFileParser.cs

    r13440 r13441  
    227227      }
    228228
     229      this.rows = values.First().Count;
     230
    229231      // after everything has been parsed make sure the lists are as compact as possible
    230232      foreach (var l in values) {
     
    369371          try {
    370372            BytesRead = reader.BaseStream.Position;
    371           }
    372           catch (IOException) {
     373          } catch (IOException) {
    373374            BytesRead += CurrentLine.Length + 2; // guess
    374           }
    375           catch (NotSupportedException) {
     375          } catch (NotSupportedException) {
    376376            BytesRead += CurrentLine.Length + 2;
    377377          }
Note: See TracChangeset for help on using the changeset viewer.