hi:

Environment : Windows 95/NT, Visual C++ 6.0 SP2

i am developing a soft. In this software, i create one prime thread, and another thread.

In one thread( no prime ) I create a CSocket . I use following code.

BOOL CPopListThread::CreatePop3Server()

{

m_pPop3Server = new CPop3Socket();

if( m_pPop3Server == NULL )

return FALSE;

ASSERT_VALID( m_pPop3Server );

m_pPop3Server->Create();

return TRUE;

}

CPop3Socket inherit class 'CAsyncSocket'

When i build application with 'Use MFC in a Shared Dll' mode ,

the application is working perfectly.but when i build application

with ''Use MFC in a Static Dll' mode ,it is aborted. I find the following

code cause error.

m_pPop3Server->Create();

but I build application by VisualC++ 5.0 . it is no any error. why!!??



Thanks in advance


Regards

Sunway Xiao