Eran Ifrah
2014-04-12 22:00:24 UTC
Hi,
System: OSX 10.9
wxWidgets: 3.0
I have a small console app that perform a simple logic:
- Start 2 threads
- Respond to events from the threads ( I am using CallAfter from the
secondary threads )
It seems as if the wxAppConsole does not receive any events from the
background threads (to be 100% sure, I also added some OnIdle and Timer to
see that if they will get caught in the app)
Change my App class to subclass "wxApp" (as opposed to wxAppConsole) - and
the events are arriving properly.
I would use this workaround, but it has one major drawback:
The console app is a child of a GUI application, so whenever the GUI
application forks the console app - I am getting another icon in the dock
bar... which looks bad
I searched the internet for something similar and I found an _exact_ same
bug report:
http://trac.wxwidgets.org/ticket/15615
Any workarounds?
--
Eran Ifrah
Author of codelite, a cross platform open source C/C++ IDE:
http://www.codelite.org
wxCrafter, a wxWidgets RAD: http://wxcrafter.codelite.org
System: OSX 10.9
wxWidgets: 3.0
I have a small console app that perform a simple logic:
- Start 2 threads
- Respond to events from the threads ( I am using CallAfter from the
secondary threads )
It seems as if the wxAppConsole does not receive any events from the
background threads (to be 100% sure, I also added some OnIdle and Timer to
see that if they will get caught in the app)
Change my App class to subclass "wxApp" (as opposed to wxAppConsole) - and
the events are arriving properly.
I would use this workaround, but it has one major drawback:
The console app is a child of a GUI application, so whenever the GUI
application forks the console app - I am getting another icon in the dock
bar... which looks bad
I searched the internet for something similar and I found an _exact_ same
bug report:
http://trac.wxwidgets.org/ticket/15615
Any workarounds?
--
Eran Ifrah
Author of codelite, a cross platform open source C/C++ IDE:
http://www.codelite.org
wxCrafter, a wxWidgets RAD: http://wxcrafter.codelite.org
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users