Results 1 to 7 of 7

Thread: Winsock crashing

  1. #1

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    Winsock crashing

    I've found that my chat/file transfer program seems to crash when transfering files. All I do is read from the file, send a chunk (1024 characters), and wait for the other program to ask for the next. (repeat)

    I figure there's just so much data being sent (this is from myself to myself) that it crashes one of the clients, or even the server program in between.

    Common problem?
    Don't pay attention to this signature, it's contradictory.

  2. #2
    Junior Member
    Join Date
    Oct 2004
    Posts
    23
    does it transfer the file over a server run app or directly to the other client??

  3. #3

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    through a server app
    Don't pay attention to this signature, it's contradictory.

  4. #4
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    send smaller chunks. Have a seperate socket just for file transfers and you should be able to handle big enough chunks without crashing.

    What type files are you sending though? ALL kinds...txt files, image, exe etc ? Depending on what u want to allow to be sent can help you decide the way you want the transfers to go about..


    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  5. #5

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    I'll try chopping chunks to 512

    It sends any file type.
    Don't pay attention to this signature, it's contradictory.

  6. #6
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    alrighty, well are you using more than one winsock in your chat? or one socket for everything
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  7. #7

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Originally posted by ice_531
    alrighty, well are you using more than one winsock in your chat? or one socket for everything
    One socket for everything, but I'm not chatting or anything else while the file transfer is in progress.

    Obviously the server uses more than one socket.
    Don't pay attention to this signature, it's contradictory.

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