I was having trouble with the SolidEdgeFileProperties API. Trying to get a better understanding, I looked up examples. I used the examples in the .NET programmer's guide, page 156. The Visual Basic.NET example works perfectly, however the C# example gives me an error on the line "propertySets.Open(@"C:\Part1.par", true);"
The error is "AccessViolationException" with a description "Attempt to read or write protected memory." I've tried placing the part in multiple locations on my C drive. I get the same error on a machin with ST7 and a machine with ST8. Could someone try to replicate this issue? Should I put in an Incident report?
Solved! Go to Solution.
Try making changes as shown in bold below:
private void button1_Click(object sender, EventArgs e)