- This topic has 5 replies, 2 voices, and was last updated 10 years, 9 months ago by Support.
-
AuthorPosts
-
January 16, 2014 at 6:22 am #35991eledhParticipant
Hello,
I have updated AC Lite in my application from version 8.48 to 8.52 and now it crashes sometimes with exception “Cannot focus a disabled or invisible window”.
I have noticed this behaviour on Win8.1. But it is not probably related to this OS.
I am not sure when this happens, sometimes my application crashes 5 times per day, sometimes it works properly for a day. It usually crashes when I lock/unlock my desktop – or meantime when desktop is locked.
Here is a list with stacktrace:
Cannot focus a disabled or invisible window
[0009EE05] Forms.TCustomForm.SetFocus (Line 5766, “Forms.pas”)
[0018C590] sSkinProvider.TacBorderForm.BorderProc
[00080477] StdCtrls.
[000610F8] Classes.TThreadList.UnlockList (Line 3359, “commonClasses.pas”)
[000AFDFC] Controls.TWinControl.MainWndProc (Line 7073, “Controls.pas”)
[0006BC04] Classes.StdWndProc (Line 11583, “commonClasses.pas”)
[00132A5A] acDials.SkinHookCBT
[0009D0B9] Forms.TCustomForm.SetWindowFocus (Line 4713, “Forms.pas”)
[0009D13F] Forms.TCustomForm.SetActive (Line 4728, “Forms.pas”)
[0009DBF2] Forms.TCustomForm.WMActivate (Line 5069, “Forms.pas”)
[000AC6DB] Controls.TControl.WndProc (Line 5146, “Controls.pas”)
[0018EDCC] sSkinProvider.TacBorderForm.UpdateExBordersPos
[00080477] StdCtrls.
[000B06D3] Controls.TWinControl.WndProc (Line 7304, “Controls.pas”)
[00153F56] sSkinManager.TsSkinManager.IsValidSkinIndex
[0014C048] sCommonData.TsCommonData.Skinned
[0009AB8B] Forms.TCustomForm.WndProc (Line 3512, “Forms.pas”)
[0014C07A] sCommonData.TsCommonData.Skinned
[0017500B] sSkinProvider.RefreshFormScrolls
[000B06D3] Controls.TWinControl.WndProc (Line 7304, “Controls.pas”)
[0017C7FA] sSkinProvider.TsSkinProvider.NewWndProc
[000B06D3] Controls.TWinControl.WndProc (Line 7304, “Controls.pas”)
[0006BC04] Classes.StdWndProc (Line 11583, “commonClasses.pas”)
[0009AB8B] Forms.TCustomForm.WndProc (Line 3512, “Forms.pas”)
[0018CF2B] sSkinProvider.TacBorderForm.BorderProc
[0018D22F] sSkinProvider.TacBorderForm.BorderProc
[00072CF2] Graphics.TCanvas.TryLock (Line 2703, “Graphics.pas”)
….
….
….
Thanks.
January 18, 2014 at 9:16 am #51378SupportKeymasterHello!
Thank you for the information, I'll try to find a reason of this issue and fix it in the nearest release.
Please check it in the v8.53, when will be released.
January 28, 2014 at 7:29 am #51450eledhParticipantHello,
I am testing the new 8.53 version for 2 days and it seems to be working properly, at least no crash so far. Thanks!
I have noticed maybe some handle leak. It seems to be related to one (or to just a few) skins only. Is it possible?
Skin Mint, extended borders. When window is minimized and restored again, count of GDI handles is rising.
(or another simple app to reproduce it, two forms, open and close form2 from form1 – when form2 is closed, less GDI handles are freed than were created)
Checked via Process Explorer.
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
January 29, 2014 at 11:04 am #51476SupportKeymasterHello
I'm not sure that real memory leak exists there. Can you send me a demo with this leak, please? I'll check it.
February 1, 2014 at 2:33 pm #51511eledhParticipantHello,
it is very simple to reproduce it. Currently tested on version 8.53
Just create a new form application, put SkinManager and SkinProvider there, add and set “Mint” as internal skin, enable extended borders. Run it.
Open properties of this application in Sysinternal's Process Explorer. Check count of GDI handles in performance tab.
Just minimize the main form (form1) and restore it again from taskbar. Count of GDI handles is increased. Minimize – restore again, and count of GDI handles is higher again.
Mint skin + ext borders = GDI handles leak
Mint and no ext borders = OK
Beijing Ext + ext borders = OK
Beijing Ext and no ext borders = OK
I did not test all skins, but currently I only know that this problem occurs with Mint skin and ext borders enabled.
February 14, 2014 at 2:41 pm #51545SupportKeymasterThank you, I see it and I will research it.
-
AuthorPosts
- You must be logged in to reply to this topic.