Results 1 to 11 of 11

Thread: Error?? TcpListener

Hybrid View

  1. #1
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2012
    Posts
    14

    Resolved 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

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Error?? TcpListener

    Quote Originally Posted by josh133 View Post
    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'.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2012
    Posts
    14

    Talking 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
  •  



Click Here to Expand Forum to Full Width