com.esri.arcgisruntime.ArcGISRuntimeException: Invalid argument.: weak_ptr is expired.

193
2
07-05-2022 12:36 AM
tashi146
New Contributor II

While trying to load pre planned esri map. I am getting error "com.esri.arcgisruntime.ArcGISRuntimeException: Invalid argument.: weak_ptr is expired.". 

First time it was working fine, after that I am getting this error. Just wanted to know what is the related issue here.

Tags (3)
0 Kudos
2 Replies
GuntherHeppner
Esri Contributor

Hi,

Could you share your code. Is it possible that you are not holding on to some object(s) like the OfflineMapTask or corresponding jobs, thus making them eligible for garbage collection?

tashi146
New Contributor II

Hi, Thanks. Issue is fixed, I am not using the object properly.

0 Kudos