Select to view content in your preferred language

C++ exception thrown when trying to identify feature

699
1
04-19-2017 09:44 PM
marius
by
Occasional Contributor

Hello,

I'm trying to hook up a popover to a map, so when you tap on a feature (part of a AGSFeatureLayer, loaded from the portal map), I'll show what attributes were available in that feature.

I've been using ```geoView identifyLayersAtScreenPoint:tolerance:returnPopupsOnly:completion:``` to try to identify that feature. However, when using that code, I get a C++ exception (attached). The identifyResults array from the completion block returns the correct layer, but the layer has no geoElements.

Are these two events related (the C++ exception and no results), or is there a different bug in my code?

Thank you,
Marius

0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor

Did you notice that exception because you have breakpoints enabled on c++ exceptions? Sometimes there are internal c++ excpetions in runtime but they do not always translate into an error or imply something is going wrong. 

The fact that you are expecting results but not getting any could indicate a problem. Is the feature service publicly available for me to try out? Anything special about the data? what type of attributes does the feature have? 

0 Kudos