Could not see the symbols with second instance of the map

463
1
06-13-2012 05:49 AM
MuraliChoudari
New Contributor III
I have an application using map control of ESRI ArcGIS Runtime engine.
I could see the symbols when i open the map for first time, and but i could not see any symbols on the second instance of map while the first one is still open.

I'm using below code in my application, AddFile method returns S_OK for the first instance, but returns E_FAIL in the second instance. where m_pSG is IStyleGalleryPtr.
Code:
IStyleGalleryStoragePtr pSGS;
pSGS = m_pSG;
HRESULT hr;
hr = pSGS->AddFile(bstr);

Please let me know how to fix this issue.
0 Kudos
1 Reply
JimBarry
Esri Regular Contributor
moving to the ArcObjects forum
0 Kudos