Sign in to follow this  
johnnyBravo

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this