I am having a little bit of a mystery when using multi-tile mode and Direct2D together.
A while ago we turned off Multi-Tile as it seemed to be causing an exception in our product. Unfortunately it isn’t something we have been able to reproduce on demand and when we recently updated to 8.0 we turned on Multi-Tile again and while the exception doesn’t happen as often we have be seeing it from time to time. The exception we are seeing is as follow:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Microsoft.WindowsAPICodePack.DirectX.Direct2D1.Matrix3x2F.Rotation(Single angle, Point2F center)
at Microsoft.WindowsAPICodePack.DirectX.Direct2D1.RenderTarget.SetRotation(Single angle)
at ThinkGeo.MapSuite.Core.WicBitmapGeoCanvas.DrawScreenImageWithoutScalingCore(GeoImage image, Single centerXInScreen, Single centerYInScreen, DrawingLevel drawingLevel, Single xOffset, Single yOffset, Single rotateAngle)
at ThinkGeo.MapSuite.Core.GeoCanvas.DrawWorldImageWithoutScaling(GeoImage image, Double centerXInWorld, Double centerYInWorld, DrawingLevel drawingLevel, Single xOffset, Single yOffset, Single rotateAngle)
at ThinkGeo.MapSuite.Core.GeoCanvas.DrawWorldImageWithoutScaling(GeoImage image, Double centerXInWorld, Double centerYInWorld, DrawingLevel drawingLevel)
at Wsi.Layout.View.Map.SourcePointStyles.DrawCore(IEnumerable`1 features, GeoCanvas canvas, Collection`1 labelsInThisLayer, Collection`1 labelsInAllLayers)
If anyone has any insight it would be greatly appreciated.
A mystery when running multi-tile mode and Direct2D
Hi Aaron,
I am sorry I haven’t reproduced this issue, could you please provide a sample or more detail code?
So that I can reproduce that first.
Regards,
Don