CArchive - CSocket problem in VS.NET

G

Guest

Hi
I am trying to migrate my existing code (c++ - MFC) that works fine in VS6 to VS7
In my code i have a client server mechanism using the MFC CSocket and Carchive to serialize objects between sides
This works fine under VS6, but when compiled and run in VS7 the actual serialization process (the storing\reading to\from the archive object) takes much much longer, and after a while it simply get stuck
when i break in to the the code on the send side i see it is stuck in CSocket::SendChunk and every time it tries to send it gets the WSAEWOULDBLOCK.
(All of the transferred objects are CObject derived ( DECLARE_SERIAL, IMPLEMENT_SERIAL and Serialize overloaded) and contains only MFC CObject derived or CStrings composite object

Any known issues or ideas?
 
K

kavabanga

Were u able to find out the problem with the WSAEWOULDBLOCK proble
using CArchive CSocket in VS.NET 2003??

I am facing an almost similar problem.

I checked the logic where I write to the archive and read at the othe
end it seems ok.

snow_master said:
*Hi,
I am trying to migrate my existing code (c++ - MFC) that works fin
in VS6 to VS7.
In my code i have a client server mechanism using the MFC CSocket an
Carchive to serialize objects between sides.
This works fine under VS6, but when compiled and run in VS7 th
actual serialization process (the storing\reading to\from the archiv
object) takes much much longer, and after a while it simply ge
stuck.
when i break in to the the code on the send side i see it is stuck i
CSocket::SendChunk and every time it tries to send it gets th
WSAEWOULDBLOCK.
(All of the transferred objects are CObject derived ( DECLARE_SERIAL
IMPLEMENT_SERIAL and Serialize overloaded) and contains only MF
CObject derived or CStrings composite object )

Any known issues or ideas?


-
kavabang
 
K

kavabanga

Were u able to find the solution to the WSAEWOULDBLOCK problem?

I am facing an almost similar problem.

I checked the logic where I write and read from the archive
and it looks ok.

snow_master said:
*Hi,
I am trying to migrate my existing code (c++ - MFC) that works fin
in VS6 to VS7.
In my code i have a client server mechanism using the MFC CSocket an
Carchive to serialize objects between sides.
This works fine under VS6, but when compiled and run in VS7 th
actual serialization process (the storing\reading to\from the archiv
object) takes much much longer, and after a while it simply ge
stuck.
when i break in to the the code on the send side i see it is stuck i
CSocket::SendChunk and every time it tries to send it gets th
WSAEWOULDBLOCK.
(All of the transferred objects are CObject derived ( DECLARE_SERIAL
IMPLEMENT_SERIAL and Serialize overloaded) and contains only MF
CObject derived or CStrings composite object )

Any known issues or ideas?


-
kavabang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top