Select to view content in your preferred language

VB.Net Application Opening Multiple ArcMap at a time.

721
1
04-14-2011 11:04 PM
GeetisriBaishya
Emerging Contributor
Dear All,
I am new to ArcGIS programming and working on a VB.NEt application which have the followings- A custom ArcMap Extension which again has 15 Menubars and some commands. The application is not giving any errors, but when I debug or run the application, It first initializes the extension login to the application then opens 19 new ArcMap instances. Afer that only it initializes the indevidual commands and opens ArcMap application.

I am not able to understand the problem. Again when I unregister the application dll ArcMap is opening normally, otherwise if I try to open ArcMap ( Programme menu also) it is initialising 20 times and the I can open any of these 19 ArcMap except for the first instance.

Can anybody tell me why this is happening. All suggestions are also welcomed.

Thanks in advance..

Geet.
0 Kudos
1 Reply
JeffDeWeese
Esri Contributor
Geetisri,

I can't tell you technically why this occurs but I believe there is an open issue with it in terms of Esri looking into it. The limit is on both the MXD and the normal.mxt and you can only have, as you discovered, up to about 19/20 of the same open at any one time. A workaround for the MXD is to merely copy the MXD to a new name and open it 19/20 times, copy another, etc. I am not sure though how to get around the normal.mxt issue. In testing in Terminal Server environments we would just use different users to avoid this.

Jeff DeWeese
Sr. Systems Architect - Esri
0 Kudos