|
-
May 13th, 2012, 01:53 AM
#1
Re: Error?? TcpListener
Have you actually identified where the problem is? Have you done what I said? Can you actually show me where the error is, or are you just waiting for me to tell you what to do? If you're capable of writing a network file transfer program using asynchronous methods then you should be able to follow my instructions to identify where the problem is, what the problem is and what to do to fix it.
-
May 13th, 2012, 02:03 AM
#2
Thread Starter
New Member
Re: Error?? TcpListener
Hi,
Yes, and I think it might be fixed, after doing some checks.
I found that I had put a 1 instead of a L, as they look very simular in VB.
It was this part of the code:
Code:
If l.Pending Then l.BeginAcceptTcpClient(AddressOf accepting, l)
Thanks!
Josh
-
May 13th, 2012, 02:13 AM
#3
Re: Error?? TcpListener
 Originally Posted by josh133
I found that I had put a 1 instead of a L, as they look very simular in VB.
Exactly. Hopefully you feel better for having found it yourself, albeit with a little help. It is always my intention to get the poster to do as much as they can for themselves because they learn more that way. As for this:
if I'm right, it should encourage you to use more descriptive variable names in future.
The implication was that you would not have made that mistake if you had used a descriptive variable name like 'listener'.
-
May 13th, 2012, 04:58 AM
#4
Thread Starter
New Member
Re: Error?? TcpListener
Thanks Again!
Tags for this Thread
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
|