Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8815167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:18:29+00:00 2026-06-14T04:18:29+00:00

In short I’m trying to implement a GUI to my networking app. Both of

  • 0

In short I’m trying to implement a GUI to my networking app. Both of them have mainloop() so I’m trying to put them into separate threads and I’m using boost::thread for it.

    //standard initialization of boost::thread
    GuiThread.join();
    NetworkThread.join();

However, above crashes for some reason unknown. I’m searching for any way to do the same thing so any suggestion will be appreciated.

Thanks in advance, Red.

EDIT:

I’m creating boost::thread GuiThread of the wxWidgets mainloop like so:

    boost::thread GuiThread = boost::thread ( boost::bind( &myAppClass::MainLoop(), this));

and Networkthread same way.

then i rewrite wxApp OnRun() function like so:

    int OnRun() {
            GuiThread.join();
            NetworkThread.join();
            return 0;
    }

when i run it ( in vs2010 ), it says: myApp.exe has triggered a breakpoint and if i press continue it stops showing the window, if i press break it shows me assembly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:18:31+00:00Added an answer on June 14, 2026 at 4:18 am

    You must run wxWidgets main loop from the same thread that initialized the library. If you want to run it in a thread other than main, it means that you can’t use the standard IMPLEMENT_APP() macro but must do the initialization yourself, e.g. by calling wxEntry() manually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short Working on login system and trying to implement remember me feature. Recently, l
Short version : How can I drag Link 1 into one of the dropdowns
Short Trying to get table with exact dimensions for a4 print Table's first and
Short Intro Currently I have a UITableView which is filled with custom cells that
Short Version: When I exit the App (home button), UIApplicationExitsOnSuspend is set to NO
Short Version: I have 7 SSISDeploymentManifest files I need to run. Is there a
Short version: I want a way to run somefunction(username) and have it return the
Short question: If I have class that impelemnts FactoryBean interface, how can I get
Short Question: Basically I am trying to add a scalar property to my entity
Short Version I'm currently looking into an issue with MySQL collations and how they

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.