|
-
Mar 25th, 2004, 01:49 PM
#1
Thread Starter
Lively Member
HashTable problem-Pls guide
Hello Everybody:
I have created a multiclient server application. I am storing the client information and the thread hashcode in a hashtable. I want to send the information back to the client from the server by selecting the thread hashcode from the hashtable and sending the information to the same client.. THe code I have developed is as follows:
try
{
if(threadhashtable.ContainsKey(txtThreadCode.Text))
{
Object objData = lblthread.Text;
byte[] byData = System.Text.Encoding.ASCII.GetBytes(objData.ToString ());
m_socWorker.Send (byData);
}
catch(SocketException se)
{
MessageBox.Show (se.Message );
}
However the code is not working and the debugger does not go into the if loop. and does not catch any exception..
Pls guide whats happening.. Thanks,
Kapil
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|