Mike Taulty's Blog
Bits and Bytes from Microsoft UK
WPF and Virtual Earth, Part 3

Blogs

Mike Taulty's Blog

Elsewhere

Following up from this post, I'd been playing around a little with using my Virtual Earth control and I realised that it wasn't really working :-)

The main problem was that I was tending to call VEMap.Find() more than once at the same time and I'd read the docs and hadn't fully understood that when they were saying "Don't call this function in a re-entrant manner" they really meant it and calling it more than once meant that the calls didn't work.

So, I modified a few things, deleted a bunch of code and tried to make sure that it only calls into the underlying Java script for the VEMap control with a single call at a time rather than trying to be re-entrant.

I also added a little bit of handling around what to do when the network isn't present and/or disappears/reappears during the lifetime of the control.

I've uploaded the project again here for download if you want the source.


Posted Thu, Oct 9 2008 4:29 PM by mtaulty
Filed under: , ,

Comments

Thoughts and Ideas on Semantics and Context wrote Sample Location-Aware WPF Application
on Tue, Nov 4 2008 4:36 AM
Hi there, started playing with Windows Location Platform bits in Windows 7 M3 that was given on PDC 2008
Mike Taulty's Blog wrote Windows 7: Sensor and Location Platform
on Fri, Nov 7 2008 2:58 AM
One part of Windows 7 is the new capability for applications to be location and sensor aware. There are...
Mike Taulty's Blog wrote MSDN Event – Catching up with Rich Clients
on Tue, Feb 10 2009 9:11 AM

I did an event down in London with MikeO today called something along the lines of “Catching up with