aviabunin

Error after closing program

Discussion created by aviabunin on May 25, 2012
Latest reply on May 30, 2012 by rlwatson
Good day!
I did userControl where "clean" axMapControl and axToolbarControl - just to study the problem.
In the test I put this userControl on the form.
When running test - no errors, but after closing  program - I get an error -
"fails to access memory - memory could not be read".
If in the constructor of userControl put, for example, display a message MessageBox.Show ("123") - then the error disappears.
Tried on multiple computers - the effect is present. At home on a laptop - no error occurs.
  That is, probably depends on the characteristics of the computer, for example, speed of execution, the relationship between flows of the main program and libraries arcgis.
1. How to deal with this problem?
2. How fix this error?
Thanks for any reference  or help!
P.S. I use vs 2010 c# and arcobjects 2010

Outcomes