#11435: wxAuiManager and wxTimer in same Window causes Timer failed.

1 view
Skip to first unread message

wxTrac

unread,
Nov 12, 2009, 5:31:43 AM11/12/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11435>

#11435: wxAuiManager and wxTimer in same Window causes Timer failed.
----------------------------------------+-----------------------------------
Reporter: God_Mark | Owner:
Type: defect | Status: new
Priority: high | Milestone: 2.9.1
Component: wxAui | Version: 2.9-svn
Keywords: AUI Timer Creation Failed | Blockedby:
Patch: 0 | Blocking:
----------------------------------------+-----------------------------------
I have a window witch required to be waked up from idle on a specified
interval so i use a timer to triger the wake up idle. The problem is that
this window uses a wxAuiManager to handle child windows. When dragging a
child window and tyry to dock it somewere a Timer Creation failed message
appears from the AUI hint timer i believe.

I have attached a minimal sample demonstrating the Timer creation failed
when trying to dock the TextCtrl.

I am running on Windows 7 but it was present in Vista too.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/11435>

wxTrac

unread,
Nov 24, 2009, 3:47:27 AM11/24/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:1>

#11435: wxAuiManager and wxTimer in same Window causes Timer failed.
----------------------------------------+-----------------------------------
Reporter: God_Mark | Owner:
Type: defect | Status: new
Priority: high | Milestone: 2.9.1
Component: wxAui | Version: 2.9-svn
Keywords: AUI Timer Creation Failed | Blockedby:
Patch: 0 | Blocking:
----------------------------------------+-----------------------------------

Comment(by God_Mark):

I found some time to debug the issue and seem that there is a hardcoded
Timer ID in framemanager.cpp on m_hint_fadetimer.SetOwner(this, 101);

By creating my timer with wxID_ANY it seems that the first generated ID is
101 duplicating timers.

Is there a hidden reason for witch the hardcoded value of the timer was
chosen or it can be easily changed to wxID_ANY?


--
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:1>

wxTrac

unread,
Nov 24, 2009, 8:14:41 PM11/24/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:2>

#11435: wxAuiManager and wxTimer in same Window causes Timer failed.
----------------------------------------+-----------------------------------

Reporter: God_Mark | Owner: bpetty
Type: defect | Status: accepted


Priority: high | Milestone: 2.9.1
Component: wxAui | Version: 2.9-svn
Keywords: AUI Timer Creation Failed | Blockedby:
Patch: 0 | Blocking:
----------------------------------------+-----------------------------------

Changes (by bpetty):

* owner: => bpetty
* status: new => accepted


Comment:

This patch looks correct. I will be testing and applying this soon.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:2>

wxTrac

unread,
Nov 25, 2009, 7:21:38 AM11/25/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:3>

#11435: wxAuiManager and wxTimer in same Window causes Timer failed.
----------------------------------------+-----------------------------------

Reporter: God_Mark | Owner: bpetty
Type: defect | Status: accepted

Priority: high | Milestone: 2.9.1
Component: wxAui | Version: 2.9-svn
Keywords: AUI Timer Creation Failed | Blockedby:
Patch: 0 | Blocking:
----------------------------------------+-----------------------------------

Comment(by God_Mark):

- i think i forgot to check if the timer was created before doing the
Connect :D


--
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:3>

wxTrac

unread,
Dec 1, 2009, 7:58:01 PM12/1/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:4>

#11435: wxAuiManager and wxTimer in same Window causes Timer failed.
-----------------------+----------------------------------------------------
Reporter: God_Mark | Owner: bpetty
Type: defect | Status: closed
Priority: high | Milestone: 2.9.1
Component: wxAui | Version: 2.9-svn
Resolution: fixed | Keywords: AUI Timer Creation Failed
Blockedby: | Patch: 0
Blocking: |
-----------------------+----------------------------------------------------
Changes (by BP):

* status: accepted => closed
* resolution: => fixed


Comment:

(In [62760]) Removed hard-coded timer Id in wxAUI for the transparent hint
fade functionality. (fixes #11435)


--
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:4>

wxTrac

unread,
Dec 1, 2009, 8:04:37 PM12/1/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:5>

#11435: wxAuiManager and wxTimer in same Window causes Timer failed.
-----------------------------+----------------------------------------------
Reporter: God_Mark | Owner: bpetty
Type: defect | Status: portneeded
Priority: normal | Milestone: 2.9.1
Component: wxAui | Version: 2.9-svn
Resolution: port to stable | Keywords: AUI Timer Creation Failed
Blockedby: | Patch: 0
Blocking: |
-----------------------------+----------------------------------------------
Changes (by bpetty):

* priority: high => normal
* status: closed => portneeded
* resolution: fixed => port to stable


Comment:

I've applied your patch with some minor changes (disconnect on timer stop
and HideHint() instead of waiting until another fade is used). Please test
this and let me know if you have any problems. I'll port this fix to 2.8
if there are no problems.

P.S. Please replace all hard tabs with spaces when submitting patches,
thanks.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:5>

wxTrac

unread,
Apr 11, 2010, 8:19:00 PM4/11/10
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:6>

#11435: wxAuiManager and wxTimer in same Window causes Timer failed.

-----------------------------+----------------------------------------------
Reporter: God_Mark | Owner: bpetty
Type: defect | Status: portneeded

Priority: normal | Milestone: 2.8.11
Component: wxAui | Version: 2.9-svn
Resolution: port to stable | Keywords: AUI Timer Creation Failed
Blockedby: | Patch: 0
Blocking: |
-----------------------------+----------------------------------------------
Changes (by vadz):

* milestone: 2.9.1 => 2.8.11

--
Ticket URL: <http://trac.wxwidgets.org/ticket/11435#comment:6>

Reply all
Reply to author
Forward
0 new messages