App crashes on selecting Legend Tab

04-07-2022 07:55 PM
Labels (1)
New Contributor II


I am using the ESRI map in my application, so, when I am selecting the Identify tab without first selecting the Legend tab then my app crashes with the following error : 
The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))

But if I load the Legend tab first and then Identify tab, then it works fine. Why?? 
Right now I am forcefully opening the Legend tab when the user selects Identify tab first 😞 

1 Reply
Occasional Contributor III

What type of app are you writing?  First thing that comes to mind is that it sounds like a problem using asncy might be able to solve. 

0 Kudos