|
-
Oct 29th, 2004, 01:27 PM
#1
Thread Starter
Fanatic Member
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.
-
Oct 29th, 2004, 01:30 PM
#2
Junior Member
does it transfer the file over a server run app or directly to the other client??
-
Oct 29th, 2004, 02:30 PM
#3
Thread Starter
Fanatic Member
Don't pay attention to this signature, it's contradictory.
-
Oct 29th, 2004, 02:50 PM
#4
Frenzied Member
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++
-
Oct 29th, 2004, 02:53 PM
#5
Thread Starter
Fanatic Member
I'll try chopping chunks to 512
It sends any file type.
Don't pay attention to this signature, it's contradictory.
-
Oct 29th, 2004, 02:54 PM
#6
Frenzied Member
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++
-
Oct 29th, 2004, 11:24 PM
#7
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|