AddDataCommand crash onclick

478
0
07-11-2017 04:42 AM
AviSaroussi1
New Contributor

hi

i have an old piece of code that call the AddDataCommand .

ICommand AddDataCommand = new ControlsAddDataCommand();
AddDataCommand.OnCreate(MapControl);
AddDataCommand.OnClick();

it works fine in 10.4 

lately we installed 10.5 

the onclick event opens the form to allow the user to choose a file to add to the map.

after a file is chosen ( raster or shape )

the cursor circle for a while ( a minnute or two )

and then error message

vshost32.exe has stopped working.

 

when i choose a geodb feature class 

everything is working fine.

 any help will be appreciated 

A.S

Tags (1)
0 Kudos
0 Replies