wxTimer m_Timer造成的crash

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
oldrealrealman
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Nov 27, 2018 2:44 am

wxTimer m_Timer造成的crash

Post by oldrealrealman »

frame中

wxTimer m_Timer;
m_Timer(this, TIMER_ID);
m_Timer.Start(1000, wxTIMER_CONTINUOUS );

在debug版本里面,没有问题,但是在release版本中程序会crash掉,

如果在onPaint函数中增加
m_Timer.Stop(); 则会正常运行。
Post Reply