MapPoint and VS2008 and Vista cross thread execption
- From: "Crash" <crashmeister@xxxxxxxxxxxxxxxx>
- Date: Mon, 5 May 2008 10:44:01 -0700
Hello,
We are migrating a major development to .NET/VS2008 and have encountered the same error as many others (acorrding to the number of posts), however most of these posts are over 7 months old and none really offered a solution, so I thought I would try again.
The problem:
After dropping the MapPoint OCX onto the form and attempting to compile, I receive the following error:
Cross-thread operation not valid: Control 'axMapper' accessed from a thread other than the thread it was created on.
Also, the MapPoint control is never visible. This appears to be an issue with VS20008 + Vista, as things work as expected in VS2008 + XP Pro.
Setting Control.CheckForIllegalCrossThreadCalls = false; allowed the application to compile, but MapPoint remained invisible, also, making this call makes me very nervous.
Additionally, the application created and compiled with VS2008 + XP Pro and VS2005 + XP Pro does not run on a Vista computer with VS2008; however, the same test applications (created with VS2005 and VS2008) DO run on a Vista computer that does not have VS2008 installed.
Finally, MapPoint applications created with Borland Delphi work fine on the Vista dev computer with VS2008 installed.
Thanks in advance,
Craig
.
- Follow-Ups:
- RE: MapPoint and VS2008 and Vista cross thread execption
- From: Jialiang Ge [MSFT]
- RE: MapPoint and VS2008 and Vista cross thread execption
- Prev by Date: Re: Visual STUDIO 2005 is slow
- Next by Date: System.ArgumentOutOfRangeException was unhandled by user code
- Previous by thread: Re: Visual STUDIO 2005 is slow
- Next by thread: RE: MapPoint and VS2008 and Vista cross thread execption
- Index(es):