View Single Post

  #10 (permalink)  
Old 01-07-2005
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

I think code is ok. If I find some sparetime this eve I will eventually try it out. However I'm not sure what to assign to oDss ?

I also think you should replace this:

Code:
//MapPoint.Location loc = (MapPoint.Location)item.Current
MapPoint.Location loc = item.Current as MapPoint.Location
if item.Current is _not_ a Location object then loc will be defenitively null which is (I think) not the case with the typecast and maybe can give unhandled exception then. However I dont think this has anything to do with the problem you see.
Reply With Quote