Hi Everyone:
I sure hope someone can help. The environment is Vista Enterprise (UAC turned off), Microsoft Visual Studio 2008 (Release, NOT orcas beta 2), Microsoft Mappoint 2006, C# language.
If I create a new windows form application, add the Mappoint COM object to the toolbox (Mappoint control 13.0), then drop it on the form, then try to run it... she fails with..
"InvalidOperationException" Cross-Thread operation not valid: Control 'axMappointControl1' accessed from a thread other than the thread it was created on.
This is like the 'hello world' of putting a mappoint object onto a form. The problem started with Orcas Beta 2 and has not gone away for myself or any of our developers. The result is our application, which used mappoint since 2004, can no longer bring up a mappoint map at all because of this failure.
For grins, I have attached this ultra simple mappoint test. Mappoint 2006 is loaded on the machine and does come up if I run it manually (As a separate program), but I can't get it to come up on a windows form at all, from anything (wheras, we had no trouble with VS 2005).
Anybody else run into this strange and bizzare interaction for the COM object in VS 2008? Any suggestions are appreciated. Thanks
Jovo