Marian 'VooDooMan' Meravy
2014-09-09 13:09:52 UTC
Greetings,
I am having constant problem with wxTimer not allocated dynamically, but
initialized in constructor of wxPanel/wxFrame with proper windows ID,
and in the constructor, assigned period of repetition (.Start()) of
timer triggering (like 200 milliseconds, e.g.).
The problem is, when in the destructor of the class, I explicitly call
"<m_timer>.Stop();", but it still trigger and call "OnTimer" event on
already destructed class (wxPanel mostly, sometimes wxFrame)-derived class.
I have very ugly workarounds, but I want you to tell me what I am
missing, since AFAIK events on deleted object are not sent any more, but
it looks like, in my case, they are.
TIA!
vdm
.
I am having constant problem with wxTimer not allocated dynamically, but
initialized in constructor of wxPanel/wxFrame with proper windows ID,
and in the constructor, assigned period of repetition (.Start()) of
timer triggering (like 200 milliseconds, e.g.).
The problem is, when in the destructor of the class, I explicitly call
"<m_timer>.Stop();", but it still trigger and call "OnTimer" event on
already destructed class (wxPanel mostly, sometimes wxFrame)-derived class.
I have very ugly workarounds, but I want you to tell me what I am
missing, since AFAIK events on deleted object are not sent any more, but
it looks like, in my case, they are.
TIA!
vdm
.