Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2005, 06:57 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in Thread

I am working on messenger.On each client side there is an interface that listens the new user request and opens a new window for chatting.But when i use to show the application halts i am writing the code if some one know the solution please Let me know.

Thread thread=new Thread(new ThreadStart(reciveConnection));
thread.Start();
Socket sock;

public void reciveConnection()
            {
                TcpListener tcp=new TcpListener(4600);
                tcp.Start();
                While(true)
                      {
           sock=tcp.AcceptSocket();
           Client cli=new Client();/////Initiating object for new clent window
           cli.Show();/////Here problem Accours.
                      }
            }





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Thread.abort nelly78 .NET Framework 2.0 10 April 4th, 2008 01:12 AM
Thread Pool bhavana General .NET 0 October 23rd, 2007 06:15 AM
Which Thread to use and How peace2007 ASP.NET 1.0 and 1.1 Professional 0 September 23rd, 2007 03:24 AM
Thread was being aborted sohailmaroof ASP.NET 1.0 and 1.1 Basics 2 January 13th, 2007 02:25 AM
terminate a thread problem lmadhavi Visual C++ 0 November 23rd, 2004 06:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.