Problem Exporting Beast To wxWidgets

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Everydaydiesel
Earned some good credits
Earned some good credits
Posts: 125
Joined: Wed Oct 28, 2015 9:48 pm

Re: Problem Exporting Beast To wxWidgets

Post by Everydaydiesel »

Thank you so much for helping me. It is working now.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: Problem Exporting Beast To wxWidgets

Post by PB »

doublemax wrote:Beware that you're allowed to use GUI elements from inside secondary threads in wxWidgets.
Just for the information, I believe that doublemax made a typo here and the sentence should read "Beware that you're NOT allowed to use GUI elements from inside secondary threads in wxWidgets"
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Problem Exporting Beast To wxWidgets

Post by doublemax »

Indeed, thanks :oops:
Use the source, Luke!
Everydaydiesel
Earned some good credits
Earned some good credits
Posts: 125
Joined: Wed Oct 28, 2015 9:48 pm

Re: Problem Exporting Beast To wxWidgets

Post by Everydaydiesel »

Thanks to everyone for helping. I really do appreciate it.

How do I kill the thread when the main window closes. Right now I spin that thread off, then it hangs (waiting for a http response). I would like that thread to end when the window closes.
New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 466
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: Problem Exporting Beast To wxWidgets

Post by New Pagodi »

Everydaydiesel wrote:Thanks to everyone for helping. I really do appreciate it.

How do I kill the thread when the main window closes. Right now I spin that thread off, then it hangs (waiting for a http response). I would like that thread to end when the window closes.
The thread sample shows one way to do this. The approach used there is to have a bool variable in the app class indicate that the application is shutting down. The threads then check that variable periodically to see if they should terminate.

Also, a semaphore is used in the destructor for the main form to keep it from being destroyed until all threads are terminated.
Post Reply