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
Experienced Solver
Experienced Solver
Posts: 90
Joined: Wed Oct 28, 2015 9:48 pm

Re: Problem Exporting Beast To wxWidgets

Postby Everydaydiesel » Wed Feb 07, 2018 12:59 am

Thank you so much for helping me. It is working now.

PB
Part Of The Furniture
Part Of The Furniture
Posts: 1679
Joined: Sun Jan 03, 2010 5:45 pm

Re: Problem Exporting Beast To wxWidgets

Postby PB » Wed Feb 07, 2018 6:59 am

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: 12602
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Problem Exporting Beast To wxWidgets

Postby doublemax » Wed Feb 07, 2018 3:54 pm

Indeed, thanks :oops:
Use the source, Luke!

Everydaydiesel
Experienced Solver
Experienced Solver
Posts: 90
Joined: Wed Oct 28, 2015 9:48 pm

Re: Problem Exporting Beast To wxWidgets

Postby Everydaydiesel » Sat Feb 10, 2018 9:27 pm

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: 252
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: Problem Exporting Beast To wxWidgets

Postby New Pagodi » Sat Feb 10, 2018 9:42 pm

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.


Return to “Compiler / Linking / IDE Related”

Who is online

Users browsing this forum: No registered users and 6 guests