My endless loop blocks my GUI !!
-
I'm developping a WinSock Server in Visual C++ with Winforms and got problem when the server start to accept clients : the server still working but the form display blocks and i cannot click on any control; I think the endless loop that accept every client block the display !! I need your help :)
-
I'm developping a WinSock Server in Visual C++ with Winforms and got problem when the server start to accept clients : the server still working but the form display blocks and i cannot click on any control; I think the endless loop that accept every client block the display !! I need your help :)
-
I'm developping a WinSock Server in Visual C++ with Winforms and got problem when the server start to accept clients : the server still working but the form display blocks and i cannot click on any control; I think the endless loop that accept every client block the display !! I need your help :)
Move your WinSock listener to a background thread and this will free the UI thread to handle the UI stuff.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
Move your WinSock listener to a background thread and this will free the UI thread to handle the UI stuff.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...Thanks for ur answer I'm a Beginner in GUI programming and i don't know how to implement multi-thread code... could you be gentle guiding me, I love CodeProject.com !!! Hehehehe Thanks a lot !!
-
Thanks for ur answer I'm a Beginner in GUI programming and i don't know how to implement multi-thread code... could you be gentle guiding me, I love CodeProject.com !!! Hehehehe Thanks a lot !!
There is no "simple" guide to multi-threaded coding. You just have to do a bunch of research on the subject, write little test apps to verify what you're thinking is correct, and teach yourself this stuff. I can't tell you how to do threading is a forum post. There's just too much information. Start reading here[^]...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
There is no "simple" guide to multi-threaded coding. You just have to do a bunch of research on the subject, write little test apps to verify what you're thinking is correct, and teach yourself this stuff. I can't tell you how to do threading is a forum post. There's just too much information. Start reading here[^]...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
-
I'm lucky to be CodeProject membre!! :-D I thank for this tuto it was what i'm looking for !! thannnnnnnnnnnnnnnnnnnnnx.
-
Thanks for ur answer I'm a Beginner in GUI programming and i don't know how to implement multi-thread code... could you be gentle guiding me, I love CodeProject.com !!! Hehehehe Thanks a lot !!
-
Open the MSDN Library and check BackgroundWorker, there are good examples there. We are here to help, not to teach.