Hi,
I recived System.InvalidOperationException: "Read and write not equal!", I remove one layer and add it again and it solve the issue. could you please give me an idea what can be the source of this exception, when you throw that?
System.InvalidOperationException: "Read and write not equal!"
at nBQ=.1hQ=.rRQ=(BinaryReader 3xQ=, Boolean 4BQ=)
at nBQ=.1SE=.GetRecord(Int32 idx)
at nBQ=.1SE=.GetMBB()
at nBQ=.Qyo=.UCo=()
at nBQ=.vSo=.VCo=(ArrayList& vyo=, Double wCo=, Int32 wSo=, Collection`1 wio=)
at nBQ=.Qyo=.VCo=(ArrayList& Vio=, Double Vyo=, Int32 WCo=, Collection`1 WSo=)
at nBQ=.Qyo=.eCo=(q1E= eyo=, ArrayList& fCo=, Double fSo=, Int32 fio=, Collection`1 fyo=)
at nBQ=.Qyo=.eCo=(q1E= eyo=, ArrayList& fCo=, Double fSo=, Int32 fio=, Collection`1 fyo=)
at ThinkGeo.MapSuite.Core.RtreeSpatialIndex.pUk=(Double qkk=, Double q0k=, Double rEk=, Double rUk=, Double rkk=, Double r0k=, Int32 sEk=, Collection`1 sUk=)
at ThinkGeo.MapSuite.Core.ShapeFileFeatureSource.GetFeatureIdsForDrawingCore(RectangleShape boundingBox, Double screenWidth, Double screenHeight)
at ThinkGeo.MapSuite.Core.ShapeFileFeatureSource.GetFeatureIdsForDrawing(RectangleShape boundingBox, Double screenWidth, Double screenHeight)
at ThinkGeo.MapSuite.Core.ShapeFileFeatureLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.MapPrinterLayer.n0o=(I0c= oEo=, GeographyUnit oUo=, RectangleShape oko=, Collection`1 o0o=, Double pEo=, Double pUo=)
at ThinkGeo.MapSuite.Core.MapPrinterLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.WpfDesktopEdition.PrinterInteractiveOverlay.DrawTileCore(GeoCanvas geoCanvas)
at ThinkGeo.MapSuite.WpfDesktopEdition.InteractiveOverlay.<DrawTile>b__2(GeoCanvas geoCanvas)
at ohM=.xhk=.DrawCore(MapArguments mapArguments, Action`1 drawCoreAction)
at ohM=.Yhc=.aBY=(MapArguments axc=, Action`1 bBc=)
at ThinkGeo.MapSuite.WpfDesktopEdition.InteractiveOverlay.YxQ=(LayerTile ZBQ=)
at ThinkGeo.MapSuite.WpfDesktopEdition.InteractiveOverlay.DrawCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.PrinterInteractiveOverlay.DrawCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.Overlay.Draw(RectangleShape targetExtent, OverlayRefreshType refreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.gBY=(Overlay gxY=, RectangleShape hBY=, OverlayRefreshType hRY=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.eBY=(IEnumerable`1 fRY=, RectangleShape fhY=, OverlayRefreshType fxY=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.eBY=(RectangleShape eRY=, OverlayRefreshType ehY=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.DrawCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.Draw(RectangleShape targetExtent, OverlayRefreshType refreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.aBY=(RectangleShape aRY=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.Refresh()
at Core.ViewModel.ThinkGeoPublishingViewModel.LayoutRootLoaded(Object sender, RoutedEventArgs e) in d:\Development\Projects\Core\branches\Spitfire\Core\Core\ViewModel\ThinkGeoPublishingViewModel.cs:line 285
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Regards,
Ben