Select to view content in your preferred language

AccessViolationException in PolylineBuilder

1824
2
12-05-2016 07:27 PM
MaxMax2
Frequent Contributor

I found that PolylineBuilder throws the AccessViolationException when the builder is used after multiple Dispatcher.Invoke calls. If I use BeginInvoke instead of Invoke, everything goes fine, so it is the workaround. But I believe you should fix this problem.

I've attached VS solution with simple test add-in (TestAddIn.zip) and test data (test.gdb.zip, place it in Debug folder after solution building). This test add-in contains one button (Click Me!) which opens a dialog. In this dialog click the Start button and you'll get AccessViolationException at line #35 in FeatureClassIterator.cs file.

0 Kudos
2 Replies
NarelleChedzey
Esri Contributor

Hi Max, 

Thanks for finding this bug and for the clear reproducible case.  

We are fixing this issue for the 1.4 release.

Regards

Narelle Chedzey

0 Kudos
MaxMax2
Frequent Contributor

Hi Narelle,

I see it is fixed now (1.4). Thank you.