Knoche

Control accessed from a thread other than the thread it was created on

Discussion created by Knoche on Feb 16, 2011
Latest reply on Feb 16, 2011 by Knoche
Hi -

I've got an application that was written for ArcEngine using vs2005/.net 2.  I've migrated the code to 3.5.  I'm now getting an error during the InitializeComponent method in the constructor of the main form saying that i'm trying to access my axMapMain control outside of the thread it was created on.

The error is happening on

  ((System.ComponentModel.ISupportInitialize)(this.axMapMain)).EndInit();

axMapMain is a customControl that inherits from MapControl. 

I know my AO but have not worked with Engine until now.

Any help is appreciated.

thanks,
kyle

Outcomes