Select to view content in your preferred language

Exceptions whilst caching map imagery

564
2
06-17-2011 05:44 AM
JH2
by
Emerging Contributor
Hi all,

I've spotted that my app is spewing out a whole bunch of exceptions whenever it's loading a new bit of the map.  If I pan the map a bit, it takes a while to load the new sections and writes things like the following to the output window:

A first chance exception of type 'System.IO.IOException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.ObjectDisposedException' occurred in System.dll
A first chance exception of type 'System.IO.IOException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.ObjectDisposedException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.ObjectDisposedException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
etc...


I've created a really simple project with just a map and nothing else and it still produces the exceptions.

I'm a bit suspicious of the network here, so I'm going to try it on another network - has anyone else seen anything like this?

Thanks,
James
0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor
These are not exceptions per se. These are "first chance" exceptions, meaning they were correctly handled by the code.
0 Kudos
JH2
by
Emerging Contributor
Hi Morten,

Thanks for the reply - I was wondering if you knew whether they're exceptions that the map usually expects to handle, or whether I've got something set up incorrectly?

The reason I'm interested is that the exceptions being handled by the map seem to make the panning a bit less smooth than it is when (sometimes) the exceptions aren't occurring.
0 Kudos