1. MFC CSocket, CArchive and Serializing stop FD_READ Notification VC
2. CArchive::Serialize with CSocket is taking forever to return
Hi All,
I have a CArchive that seem to lock up from time to time and I was hopping
someone could help me.
When I call "Serialize" it sometimes takes over 40 seconds to return.
All I am doing is getting data received from the socket.
I do have some child threads running but really can't see where/ how they
could block the execution of the main thread.
Bellow is a portion of the code. Can someone see why the Serialize call
would lock up?
Is there a tool to help me see what thread is currently working. Maybe it
would help me to find what I am doing wrong.
///////////////////////////////////////////////
CSocketFile file( m_pMySocket );
CArchive arIn(&file, CArchive::load);
CSomeClass msg
msg.Serialize(arIn, m_pMySocket);
msg.Serialize(arIn, m_pMySocket ); // <<--- sometimes takes over 40
seconds to return
///////////////////////////////////////////////
void CSomeClass::Serialize(CArchive& ar)
{
CObject::Serialize(ar);
if (ar.IsStoring())
{
ar << m_sName; //CString(..)
ar << m_uType; //UINT
}
else
{
ar >> m_sName; //CString(..)
ar >> m_uType; //UINT
}
}
Many thanks in Advance
Simon
3. Looking for books / references for Network programming using mutlithreading - CSharp/C#
4. [ace-users] C++ Network Programming: Mastering Complexity Using ACE and Patterns
5. Multithread (MT) vs. Multithread DLL (MD) option
6. Multithread or Multithread DLL?
Hello, I'm trying to create a worker thread for my VC++ program, and was wondering whether I should be linking with the Multithread /MT or Multithread DLL /MD option? I'm not quite sure, in layman's terms, what the difference is. When I build with Multithread DLL, the linker complains about not being able to find a bunch of "unresolved external symbols" associated with nafxcwd.lib. When I build with Multithread, it completes, but when I run, I'm getting a "Debug Assertion Failed!" error message, associated with thrdcore.cpp. Any insight/help appreciated. Robert ( modify address for return mail ) www.numbersusa.com www.americanpatrol.com
7. change library from not-multithread to multithread RAD Studio 2007 - C++ Builder IDE
8. c# networking - data sent across network with tcpclient class using rjindael encryption truncates