Results 1 to 10 of 10

Thread: Problem With Winsock!!! Please Help

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    265

    Problem With Winsock!!! Please Help

    Hi! my project is attached. I have a very weird problem with Winsock!
    I made 1 program with 2 forms. 1st form is the client, 2nd form is the server.

    Server send snapshot for client. So, client display either Single Picture. Or stream of pictures (to simulate video capturing).

    when open 1st window (client) in a computer, and 2nd window(server) in another computer... it connect and display picture without problem just once!! when press "Capture" button again it may reponse or Winsock may loss connection. and when Check "Loop"=> means for stream of pictures.. Winsock loss connection immediatly!

    I don't know where is the problem exactly! Please help

    The code attached. Winsock ocx is attached.. see it in the release folder

    Thank's in advance
    Attached Files Attached Files

  2. #2

    Re: Problem With Winsock!!! Please Help

    You're in the .NET framework...I suggest using Sockets rather than the old legacy Winsock, which was used for VB6 programs.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    265

    Re: Problem With Winsock!!! Please Help

    I'm VB6 programmer, I don't know much in VB.Net, I don't know how to deal with Sockets classes, and unfortunately don't have the time to learn them.

    So, if anybody can help me with this, please. If using socket classes with solve the problem, please edit the code so I can see how to do it for the other projects.

    Thank's

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    265

    Re: Problem With Winsock!!! Please Help

    is there a new ocx that depends on system.net.sockets ? or a ready class that make it easier (than dealing directly with system.net.sockets)?

    thank's

  5. #5

    Re: Problem With Winsock!!! Please Help

    You can look for managed DLL's that help handle Sockets. But you'll want to learn Sockets for yourself because they were designed to be flexible and lower level in terms of usability than a Winsock control.

    Sockets will give you more control than Winsock could.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    265

    Re: Problem With Winsock!!! Please Help

    formlesstree4... are you telling that the problem is from Winsock dll not from my code, or you just giving an advice?! did you download the code and see the problem?!

    Thank's!

  7. #7
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    Re: Problem With Winsock!!! Please Help

    I'm too hung over to find out what's wrong with your code, but that's basically VB6 code disguised as a .net application. My advice is to get familiar with the managed sockets class, here's a link to a thread with a full source example of one. http://www.vbforums.com/showthread.php?t=502795

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    265

    Re: Problem With Winsock!!! Please Help

    Thank's Dark Anima. The problem I'm working on a huge project. and have only this problem, in that part of the program. So, I can't change the whole progject from the beggining. Or until edit it... because it is very big and I don't have time to loss on editing.

    any way thank's alot partner. and please, if any one figure out whats the problem with my code, replay on this thread, I would be grateful.

    Thank's for all

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    265

    Re: Problem With Winsock!!! Please Help

    I tried many solutions, like reducing the amount of data sent in a time... but the same problem! Any body help me plz?

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    265

    Re: Problem With Winsock!!! Please Help

    Is there any ready class that depends on .Net.Sockets classes, and at the same time its have ready methods and events like Winsock?
    Is there a better version of Winsock DLL for VB.Net 2005?

    Thank's for help!!!

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