05-18-2015 03:08 PM - edited 05-18-2015 03:34 PM
GenericArguments[1], 'NationalInstruments.Controls.Primitives.GraphDataCollectionDescriptor`1[NationalInstruments.Controls.ChartCollection`2[System.Double,System.Double]]', on 'NationalInstruments.Controls.Internal.DescriptorHelper+MultiDimensionalImpl`2[TData,TOperations]' violates the constraint of type parameter 'TOperations'.
Any ideas on this one? I am puzzled because it used to work last week but now it won't work. I even simplified it to these basics and same issue:
ChartCollection<double, double> chartCollection = new ChartCollection<double, double>();
Plot plot = new Plot("Test");
plot.Renderer = new LinePlotRenderer();
graph.Data.Add(chartCollection);
graph.Plots.Add(plot);
Thank you!
Solved! Go to Solution.
05-19-2015 10:34 AM
Except for the additional information about "crossing a native/managed boundary", this sounds like an issue with the debugger stopping for first-chance exceptions, as mentioned in this answer. Since it did not happen before, I expect the change is in the debug exceptions configured in Visual Studio, and that the linked answer will avoid the issue.
05-19-2015 10:43 AM - edited 05-19-2015 10:43 AM
Ah, yes, I did change this setting (which I don't need anymore).
Thanks!
This is VS 2013