Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

TypeLoadException crossed native/managed boundary

Solved!
Go to solution

Capture.PNG

 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!

0 Kudos
Message 1 of 3
(4,953 Views)
Solution
Accepted by topic author kirko7

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.

~ Paul H
0 Kudos
Message 2 of 3
(4,928 Views)

Ah, yes, I did change this setting (which I don't need anymore).

Thanks!

 

This is VS 2013

 

 Capture.PNG

0 Kudos
Message 3 of 3
(4,924 Views)