CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2002
    Posts
    65

    Multithreading problem

    Hi

    I wrote a multithreaded server program for sending and receiving files from and to client but I am getting some strange exceptions.

    Plz find attached the errors I am getting. Plz could someone help me in finding what's wrong in my program? Thanks
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2003
    Posts
    1

    Threading Error

    Hi,

    The error list log is not clear..... but also I could smell something fishy with the socket connection.......

    If possible please send the code for it.....

  3. #3
    Join Date
    Dec 2002
    Posts
    65
    Hi

    Plz attached find the codes I wrote. Thanks again.

    I hope that you can tell me what's wrong with the socket connection.
    Attached Files Attached Files

  4. #4
    Join Date
    Jul 2002
    Location
    Seattle Area, WA
    Posts
    241
    We had a similar problem with a project at work once. I didn't do that part and am not that familiar with sockets, but I think it had something to do with the size of the data that is being sent must be a multiple of some pre-set OS packet size or something like that so we had to pad the buffer if it was less than that size.

    I know that sounds a little vague, but I hope it can put you on the right track.

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

Featured