AC 9.19 Cannot focus a disabled or invisible window

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36405
    eledh
    Participant

    Hello,

    I updated my application to the latest version AC 9.19

    Unfortunatelly now the application crashes sometimes, randomly. It is very hard to reproduce it.

    Hopefully at least the stack trace of the exception will be handful:

    Cannot focus a disabled or invisible window

    [0009EDE9] Forms.TCustomForm.SetFocus (Line 5766, “Forms.pas”)

    [001A28CA] sSkinProvider.TacBorderForm.BorderProc

    [000AFDE0] Controls.TWinControl.MainWndProc (Line 7073, “Controls.pas”)

    [0006BB68] Classes.StdWndProc (Line 11583, “commonClasses.pas”)

    [0009D09D] Forms.TCustomForm.SetWindowFocus (Line 4713, “Forms.pas”)

    [0009D123] Forms.TCustomForm.SetActive (Line 4728, “Forms.pas”)

    [0009DBD6] Forms.TCustomForm.WMActivate (Line 5069, “Forms.pas”)

    [000AC6BF] Controls.TControl.WndProc (Line 5146, “Controls.pas”)

    [000B06B7] Controls.TWinControl.WndProc (Line 7304, “Controls.pas”)

    [0009AB6F] Forms.TCustomForm.WndProc (Line 3512, “Forms.pas”)

    [001A356B] sSkinProvider.TacBorderForm.BorderProc

    [00072C4A] Graphics.TCanvas.TryLock (Line 2703, “Graphics.pas”)

    [0006105C] Classes.TThreadList.UnlockList (Line 3359, “commonClasses.pas”)

    [000AFDE0] Controls.TWinControl.MainWndProc (Line 7073, “Controls.pas”)

    [0006BB68] Classes.StdWndProc (Line 11583, “commonClasses.pas”)

    [0009EA29] Forms.TCustomForm.CMShowingChanged (Line 5527, “Forms.pas”)

    [000AC6BF] Controls.TControl.WndProc (Line 5146, “Controls.pas”)

    [000B06B7] Controls.TWinControl.WndProc (Line 7304, “Controls.pas”)

    [0009AB6F] Forms.TCustomForm.WndProc (Line 3512, “Forms.pas”)

    [0019BE91] sSkinProvider.TsSkinProvider.AC_CMShowingChanged

    [00179CE2] sCommonData.TsCommonData.Skinned

    [0018E4C7] sSkinProvider.TsSkinProvider.NewWndProc

    [000AC34C] Controls.TControl.Perform (Line 5021, “Controls.pas”)

    [000AFB7E] Controls.TWinControl.UpdateShowing (Line 7006, “Controls.pas”)

    [000444AA] System.@IsClass (Line 9077, “syssystem.pas”)

    [000AFCC1] Controls.TWinControl.UpdateControlState (Line 7041, “Controls.pas”)

    [000B2572] Controls.TWinControl.CMVisibleChanged (Line 8397, “Controls.pas”)

    [000AC6BF] Controls.TControl.WndProc (Line 5146, “Controls.pas”)

    [0006B1D7] Classes.TComponent.SetReference (Line 10746, “commonClasses.pas”)

    [0006ADE3] Classes.TComponent.RemoveFreeNotification (Line 10497, “commonClasses.pas”)

    [0006AE06] Classes.TComponent.Notification (Line 10506, “commonClasses.pas”)

    [000C259F] Menus.TMenuItem.Notification (Line 2502, “Menus.pas”)

    [0006AE2C] Classes.TComponent.Notification (Line 10512, “commonClasses.pas”)

    [0006ADE3] Classes.TComponent.RemoveFreeNotification (Line 10497, “commonClasses.pas”)

    [0006AE06] Classes.TComponent.Notification (Line 10506, “commonClasses.pas”)

    [000AA328] Controls.TControl.Notification (Line 3780, “Controls.pas”)

    [000B06B7] Controls.TWinControl.WndProc (Line 7304, “Controls.pas”)

    [0008256F] StdCtrls.TCustomLabel.Notification (Line 1775, “StdCtrls.pas”)

    [0006AE2C] Classes.TComponent.Notification (Line 10512, “commonClasses.pas”)

    [0009AB6F] Forms.TCustomForm.WndProc (Line 3512, “Forms.pas”)

    [00179CE2] sCommonData.TsCommonData.Skinned

    [0019F724] sSkinProvider.TsSkinProvider.AC_WMVisibleChanged

    [0018E3E9] sSkinProvider.TsSkinProvider.NewWndProc

    [00046104] System.@FinalizeRecord (Line 15048, “syssystem.pas”)

    [000AC34C] Controls.TControl.Perform (Line 5021, “Controls.pas”)

    [000AAF1A] Controls.TControl.SetVisible (Line 4169, “Controls.pas”)

    [0009A4A6] Forms.TCustomForm.SetVisible (Line 3316, “Forms.pas”)

    [0009ED6E] Forms.TCustomForm.Hide (Line 5748, “Forms.pas”)

    [0009EC4A] Forms.TCustomForm.Close (Line 5607, “Forms.pas”)

    [0030E067] _clientforwardtest.TForm40.Timer3Timer (Line 111, “_clientforwardtest.pas”)

    [0008CC1F] ExtCtrls.TTimer.Timer (Line 2281, “ExtCtrls.pas”)

    [0008CB03] ExtCtrls.TTimer.WndProc (Line 2239, “ExtCtrls.pas”)

    [0006BB68] Classes.StdWndProc (Line 11583, “commonClasses.pas”)

    [000A29F0] Forms.TApplication.ProcessMessage (Line 8105, “Forms.pas”)

    [000A2A2A] Forms.TApplication.HandleMessage (Line 8124, “Forms.pas”)

    [000A2D1F] Forms.TApplication.Run (Line 8223, “Forms.pas”)

    (002F8F4C) [00339F4C]

    Please would be possible to fix it in next release? Thanks.

    #53037
    Support
    Keymaster

    Hello!

    I will add some changes and I hope it helps.

    Please, tell me when this error occurs.

    #53061
    eledh
    Participant

    Hello,

    as far I know and everytime I have checked the logs, it seems that it crashes during closing (hiding) form.

    Also as you can see it here in this log:

    …..

    [0009EC4A] Forms.TCustomForm.Close (Line 5607, “Forms.pas”)

    [0030E067] _clientforwardtest.TForm40.Timer3Timer (Line 111, “_clientforwardtest.pas”)

    ….

    In this case it happend during automatic closing of one popup window, it was closed by timer.

    But this error occured also for another forms/windows, closed manually by button.

    Just guessing, could be by caused by too quick of form closing? Extended borders, Animations are enabled – showing/hiding, could it be that form is closed during the animation? But it is in one gui thread.

    Unfortunatelly I was not able to identify the specific moment or situation what it is crashing.

    It is IM application, main window, chat window(s) (with blinking) and autoclosing notification popups and “bubles”. It is crashing quite randomly – usually without user action, so when popup is showing/hidding itself.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.