Hi,
Every now and then I get an error when the WPF controls tries to render itself. In many cases, this just results in my application closing.
I’ve had an error recently that is appearing regularly, no real understanding as to why as the error is quite vague. It occurs when I call the refresh method, after setting some configuration, in response to the VisibleChanged event.
System.ArgumentException was unhandled by user code
HResult=-2147024809
Message=Parameter is not valid.
Source=System.Drawing
StackTrace:
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height)
at ThinkGeo.MapSuite.WpfDesktopEdition.AdornmentOverlay.DrawCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.Overlay.Draw(RectangleShape targetExtent, OverlayRefreshType refreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.HBQ=(Overlay HxQ=, RectangleShape IBQ=, OverlayRefreshType IRQ=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.FBQ=(IEnumerable`1 GRQ=, RectangleShape GhQ=, OverlayRefreshType GxQ=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.FBQ=(RectangleShape FRQ=, OverlayRefreshType FhQ=)
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.BBQ=(RectangleShape BRQ=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.Refresh()
InnerException:
It looks like a bug inside ThinkGeo??
I’m using 7.0.0.86
Thanks,
Steve
Crash in wpf control on refresh
Hi,
Was there any info on this issue? I keep hitting this error in a few configurations.
Thanks,
Steve
Hi Steve,
Thanks for your post,we tried to recreat the problem on our end, but it didn’t show up, would you please provide us the code for the settings on “AdornmentOverlay”? for a further test, and if possible, a small self-contained sample will be highly appreciated.
Waiting for your further information.
Summer
Hi Summer,
We’ve done a bit more analysis on this, and we cant get it to crash using a small application. We are now suspecting that it might be a threading issue (no idea where yet). If we manage to get a complete sample, I’ll attach to this ticket.
Thanks,
Steve
Hi Steve,
Thanks for your further inforamtion, once we recieve your sample, we will debug it immediately. Meanwhile, if you need any assistance that we could provide, please feel free to let us know.
Best Regards
Summer