ThinkGeo.com    |     Documentation    |     Premium Support

Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.dll

Hi, quick question, when zooming I’ve noticed that I get a lot of TaskCanceledExceptions.
Is this expected or do I need to handle or catch this in code?

ThinkGeo Message - 11:21:34.0163985: TileOverlay.TransformCore:     ExtentChangedType:MouseWheelZoomOut
ThinkGeo Message - 11:21:34.0173233: TileOverlay.TransformCore: ExtentChangedType:MouseWheelZoomOut
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.dll
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.dll
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.dll
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.dll
ThinkGeo Message - 11:21:34.1629465: TileOverlay.TransformCore: ExtentChangedType:MouseWheelZoomOut
ThinkGeo Message - 11:21:34.1639031: TileOverlay.TransformCore: ExtentChangedType:MouseWheelZoomOut

hi @Julian_Thoms,

This is expected behavior and doesn’t need to be handled. Zooming in/out produces multiple drawing requests, but the map just needs to be drawn according to the most recent one, so some intermediate reqeusts will be cancelled.

Regards,
Leo

1 Like