We are using the latest desktop 3.0 edition (WPF) and are connecting to a WMS server. When the WMS server is down, or when there is no internet connection (for example, when using an air card that is not connected) the map throws a null pointer exception on the form Loaded event (which is where we configure the WMS layers) and is disabled thereafter. The null pointer exception is stackless, so I am guessing it happens on a background thread.
Questions
1. Why does the map control throw a stackless NPE exception? This gets caught by our unhandled exception handler. We would prefer to catch the exception so we can modify the state of the map, such as by enabling a "refresh" button.
2. Does the map control tolerate sporadic network drops? if so, what is the best way for us to recover from the network drop without having to close the dialog containing the map and re-opening it?
Thanks!