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 Version Is it possible to have two .pro file under the same folder?
Short version: I'm trying to get something like this to work in c using
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
Short version: If I have an index {category: 1} , and a document {category:
Short Question: If I have a Silverlight application built in SL3 can I detect
Short description of our application: We analyze .NET assemblies and detect dependencies between them
Short snippet here (synchronous just for sample, normally we use async and both happen

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.