I have written my own MapTileSource class that enables the xamMap to use a WMS. This works excellent and gives us access to all map sources we need.
However, now and then the WMS may fail on a single request for a tile and return an empty response. When this happens I receive the following exception:
System.AccessViolationException was unhandled Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. InnerException:
The result of the exception is that my Silverlight application crashes and terminates.
Since no stack trace or other information is available I am at a loss how to proceed. From what I have managed to figure out it seems that the xamMap control fails when the response for a tile request is empty. My GetTileLayers method fills the tileImageLayerSources list with the appropriate urls, but have no means of validating the request before it is performed. The urls are well formed, but as said the WMS sometimes fails on a single request.
Do yoy have any suggestions on how to handle this problem? If I somehow could trap the exception, hence avoiding the application crash, everything would be fine.
Just an update to let everyone know, this issue has been resolved in the latest service release.
You can download the latest service release by going to the Infragistics website and hovering over the "Account" tab then selecting "My Keys & Downloads" from the dropdown. On the "My Keys & Downloads" page you will see a list of product keys. Select the product key assigned to the product you wish to update and then scroll down the download list until you reach the Service Releases section.
Hi Mikael,
I have logged this issue in our internal tracking system with a development ID of 102657. I have also created a private case for you that is linked to it. This will notify you automatically when a fix is available. The case number is CAS-83901-598F3X.
I will also update this thread when a fix is made available.
Excellent. I'm looking forward to the response.
Thanks
I'm still waiting on a response from engineering. As soon as I get one, I will update you.
I have notified our engineering team of the issue and forwarded your sample to them. I will update you tomorrow once I have a response.