#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>
#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>
#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>
#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>
#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>