Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CArchiveException::endOfFile in multi threaded winsock prog. HELP!

0 views
Skip to first unread message

DarrinPS

unread,
Apr 9, 1996, 3:00:00 AM4/9/96
to
I wrote a program in VC++ 4.0 that creates a worker thread that opens a
socket to a server, and sends a message, and receives back an
acknowledgement. Now, if I kick off more that one thread (which also
sends and receives on the same address and port), I get a
CArchiveException::endofFile error. Why? I thought that it is common to
have more that one socket send and receive information on the same port
and IP address.

The error almost seems like my various worker threads are using the same
file (I use serialization << and >> to send and receive) even though I do
a file=new CSocketFile() in each thread. What do I need to do to prevent
this? I'm very confused.

BTW, if a look at my code will help, I can post it. I just didn't want to
waste the bandwidth if it wasn't needed.

Please respond to: FIGNET05...@eds.com since I don't have easy
access to this group.

Thank you.


0 new messages