[DevExpress Support Team: CLONED FROM T942498: WinForms - Error icons have incorrect size after a validation results window is displayed]
Hi Guys - any Info when there is a newer Hotfix available. Seems like 20295 or 20296 intruduced another massive problem with skins. we see massive performance degration when using specific skins (office 2007 or caramel and also mcskin - when pause the execution it seems the application is hanging in an drawimage method. using any newer skin solved the problem.
We profiled our Desktop UI Manager demo and didn't notice any performance degradation. Moreover, the DrawImage method works even faster when some bonus skins like McSkin are used than when recent SVG skins are applied.
To determine what causes the slowness in your application, I suggest you profile it. You can use any performance profiler (the built-in VS one or dotTrace) to measure your application performance and find the bottleneck.
There can be other reasons for the slowness, for example, exceptions. I recommend you review the following KB article where we described common steps to narrow down this issue: How to investigate an issue and determine why it occurs in your project (refer to point #5 - Controls/forms are loaded/operate slowly).
Please try this and let me know if this helps.
If this doesn't help, please share a simple compilable project in which this issue is reproduced. It will allow us to find a precise solution for you much faster.
I look forward to your response.
Hi Stan - there are no exceptions - it only happened after installing the hotfix. we try to isolate it - or see if it is also fixed by going directly to 20.2
this is the callstack - application is haning there for several minutes - we are still investigating:
System.Drawing.dll!System.Drawing.Graphics.DrawImage(System.Drawing.Image image, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit) Unbekannt
DevExpress.Data.v20.1.dll!DevExpress.Utils.Svg.SvgBitmap.ScaleImg(System.Drawing.Size outputSize, System.Drawing.Size srcSize, System.Drawing.Image bufferedImage, double opacity) Unbekannt
DevExpress.Data.v20.1.dll!DevExpress.Utils.Svg.SvgBitmap.RenderCore(System.Drawing.Size imageSize, DevExpress.Utils.Design.ISvgPaletteProvider paletteProvider, System.Drawing.Image bufferedImage, double scale, DevExpress.Utils.DefaultBoolean useHighSpeedRendering) Unbekannt
DevExpress.Data.v20.1.dll!DevExpress.Utils.Svg.SvgBitmap.Render(System.Drawing.Size imageSize, DevExpress.Utils.Design.ISvgPaletteProvider paletteProvider, DevExpress.Utils.DefaultBoolean useHighSpeedRendering, DevExpress.Utils.DefaultBoolean allowCache) Unbekannt
DevExpress.Utils.v20.1.dll!DevExpress.Utils.ImageOptions.GetImageFromSvg(System.Drawing.Size userSvgImageSize, bool scaleSvgImageSize, DevExpress.Utils.Design.ISvgPaletteProvider palette) Unbekannt
DevExpress.Utils.v20.1.dll!DevExpress.Utils.ImageOptions.GetImage(System.Drawing.Size svgImageSize, bool scaleSvgImageSize, DevExpress.Utils.Design.ISvgPaletteProvider palette) Unbekannt
DevExpress.Utils.v20.1.dll!DevExpress.Utils.ImageOptions.GetImage(DevExpress.Utils.Design.ISvgPaletteProvider palette) Unbekannt
DevExpress.Utils.v20.1.dll!DevExpress.Utils.ImageOptions.GetImage(DevExpress.Skins.ISkinProvider provider, DevExpress.Utils.Drawing.ObjectState state) Unbekannt
DevExpress.XtraLayout.v20.1.dll!DevExpress.XtraLayout.LayoutGroup.GetCaptionImage() Unbekannt
DevExpress.XtraLayout.v20.1.dll!DevExpress.XtraLayout.Tab.LayoutTabPage.DevExpress.XtraTab.IXtraTabPage.Image.get() Unbekannt
DevExpress.XtraEditors.v20.1.dll!DevExpress.XtraTab.ViewInfo.BaseTabPageViewInfo.HasImage.get() Unbekannt
as a side note - i see there are several changes in 20295 in the SvgBitmap class - and my guess is the introduced lock statement causes this trouble.
we still try to isolate the problem - but this is getting urgent now!
Hi Guys - we can repro it easy now with XAF maindemo - start maindemo - set <LayoutManagerOptions EnableLayoutGroupImages="True" /> and <ListView Id="Contact_ListView" MasterDetailMode="ListViewAndDetailView"> -> see attached video!
this is really high priority now guys!!
Thank you for the video and info, Martin. This information helped us reproduce this issue, and now we are researching it.
We'll notify you once we make any progress.