Cannot catch AccessViolationException coming from CoreArcGISMapImageSublayer.CoreRT_ArcGISMapImageSublayer_getTable

390
2
04-22-2020 10:33 AM
JeremyBridges
Occasional Contributor

Our app is crashing when trying to access the Table property of a ServiceFeatureTable. Part of the call to that gets down to the core CoreArcGISMapImageSublayer.CoreRT_ArcGISMapImageSublayer_getTable method. That method throws an AccessViolationException for some unknown reason. Two issues with this:

  1. We have a try-catch around this, the exception still crashes the app. Not sure how that's possible.
  2. The exception doesn't tell us why it is thrown. We can't fix without that info.

Love to hear from you guys. Thanks in advance!

0 Kudos
2 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

- Can you share the repro case/code?

- Which API / version / platform are you using?

Thanks

Mike

0 Kudos
dotMorten_esri
Esri Frequent Contributor

We have a try-catch around this, the exception still crashes the app. Not sure how that's possible.

It's possible if it happens on a separate thread. A stack trace would be very helpful as well as some of the code you execute to cause this, or as Mike said a repro sample would be the absolute best so we can troubleshoot from our end as well.

0 Kudos