Jump to content
  • Advertisement
Sign in to follow this  

c++, Strange quirk when putting windows create/loop in seperate thread.

This topic is 4455 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i'm playing with threads and I have put the window creation and message pump loop code into a seperate thread. eg.
Window window; //seperate thread inside which calls window create and message pump loop

//game init code
while(1) {
//game loop code

And I have a strange phenomena happening. I'm using the default windows xp title bar, which loops like so: But when I put the window create code in the different thread the titlebar looks like so: Although it isn't a problem, I am a little worried :) So does anyone have an idea on what is happening here? Thanks

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!