Click here to Skip to main content
15,901,035 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to determine if two C# exe come from the same source Pin
User 665814-Jan-09 10:04
User 665814-Jan-09 10:04 
AnswerRe: How to determine if two C# exe come from the same source [modified] Pin
Luc Pattyn14-Jan-09 10:12
sitebuilderLuc Pattyn14-Jan-09 10:12 
GeneralRe: How to determine if two C# exe come from the same source Pin
PIEBALDconsult14-Jan-09 16:57
mvePIEBALDconsult14-Jan-09 16:57 
AnswerRe: How to determine if two C# exe come from the same source Pin
Daniel Grunwald14-Jan-09 12:48
Daniel Grunwald14-Jan-09 12:48 
AnswerRe: How to determine if two C# exe come from the same source Pin
Henry Minute14-Jan-09 13:31
Henry Minute14-Jan-09 13:31 
Questionmultiple icons in exe with alpha Pin
Xmen Real 14-Jan-09 5:59
professional Xmen Real 14-Jan-09 5:59 
QuestionProblem transferring file with FTP using Socket Pin
Member 321680814-Jan-09 5:50
Member 321680814-Jan-09 5:50 
AnswerRe: Problem transferring file with FTP using Socket Pin
Mark Salsbery14-Jan-09 13:35
Mark Salsbery14-Jan-09 13:35 
I'm not sure where you're losing data, but you can greatly simplify your code
by implementing a simple protocol - the simplest being send a header first that
indicates how many bytes of data will follow. This header could be a simple integer.


Member 3216808 wrote:
I have even put in a Thread.Sleep(500) to wait for the last buffer to transfer


You shouldn't need to use Sleep() anywhere, and using it like that is really bad.
Even if it was accurate, what if it took 501ms? You can't possibly throw meaningless
millisecond values at it and hope something works. You're also definitely not guaranteed
20ms accuracy on Sleep()...


Other than that, I can't tell what's up - your code doesn't look like it has anything to do with
FTP - at least not the standard FTP. You haven't indicated what socket protocol you're using, whether
you're using blocking/non-blocking sockets, etc...


Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Problem transferring file with FTP using Socket Pin
Member 321680815-Jan-09 2:41
Member 321680815-Jan-09 2:41 
AnswerRe: Problem transferring file with FTP using Socket Pin
Bharat Jain29-Jan-09 19:47
Bharat Jain29-Jan-09 19:47 
QuestionSend UDP string via proxy [modified] Pin
s.sala14-Jan-09 4:05
s.sala14-Jan-09 4:05 
AnswerRe: Send UDP string via proxy Pin
Bharat Jain14-Jan-09 4:27
Bharat Jain14-Jan-09 4:27 
GeneralRe: Send UDP string via proxy Pin
s.sala14-Jan-09 4:59
s.sala14-Jan-09 4:59 
GeneralRe: Send UDP string via proxy Pin
Bharat Jain29-Jan-09 19:27
Bharat Jain29-Jan-09 19:27 
QuestionGetting column value from binding Pin
kanchoette14-Jan-09 4:00
kanchoette14-Jan-09 4:00 
AnswerRe: Getting column value from binding Pin
moon_stick14-Jan-09 4:15
moon_stick14-Jan-09 4:15 
GeneralRe: Getting column value from binding Pin
kanchoette14-Jan-09 21:30
kanchoette14-Jan-09 21:30 
GeneralRe: Getting column value from binding Pin
moon_stick14-Jan-09 21:57
moon_stick14-Jan-09 21:57 
GeneralRe: Getting column value from binding Pin
kanchoette14-Jan-09 22:09
kanchoette14-Jan-09 22:09 
GeneralRe: Getting column value from binding Pin
moon_stick14-Jan-09 22:45
moon_stick14-Jan-09 22:45 
AnswerRe: Getting column value from binding Pin
moon_stick14-Jan-09 22:51
moon_stick14-Jan-09 22:51 
GeneralRe: Getting column value from binding Pin
kanchoette14-Jan-09 23:39
kanchoette14-Jan-09 23:39 
GeneralRe: Getting column value from binding Pin
moon_stick14-Jan-09 23:49
moon_stick14-Jan-09 23:49 
GeneralRe: Getting column value from binding Pin
kanchoette14-Jan-09 23:55
kanchoette14-Jan-09 23:55 
QuestionHow to contact with file in C#? Pin
thuonghasm14-Jan-09 3:22
thuonghasm14-Jan-09 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.