ThinkGeo.com    |     Documentation    |     Premium Support

NullReferenceException when tracking

Good Afternoon,


I came across this behavior and maybe there's something I need to catch, but I can't figure it out. After the user has turned on TrackMode (set it to Polygon, to be complete), if he immediately double-clicks, the app blows up with a NullReferenceException. I have set break points in my methods that capture the Track Shape ending and they are never reached. Break points in MapClick and MouseDoubleClick events are not reached either.


If there was some way I could capture this and alert the user that would be great.


(If they double click after clicking to add the first point, this exception doesn't happen.)


Any advice would be great!


Kimberly



Kimberly, 
  
 We couldn’t recreate it in V3.0.199, could you please confirm you are using the latest version? We tested it on the sample Getting Started\Track and Edit Shape, it works well. 
  
 Thanks, 
 ThinkGeo Support 


It is a problem with the version. I am using 3.0.255.0, which I downloaded as a fix in relation to the discussion forum post regarding an event on Track Shape Completion.


gis.thinkgeo.com/Support/Dis...fault.aspx


I went back to the old version (and commented out the parts of the code that broke) and I don't seem to have the issue with the 3.0.199 version of the code.


Thanks!



Kimberly, 
  
 This is a bug in version 3.0.255 when we do the enhancements on tracking shapes. We suggest you to turn back to version 3.0.199, it works fine in your case. Please wait for the upcoming version, which will fix these bugs and enhance the track shape functionality. Sorry for the inconvenience for now. 
  
 Thanks, 
 ThinkGeo Support