Dear all,
I have used a Windows 2000 professional 2000 and Visual Studio 6.00 with SP6. When i define a CMap class with integer key and CString object and i try to use the function of "SetAt" but it fail with assertion in the MFCD42.dll. The code is shown as follows.

defined in abc.h

CMap<int,int,CString, CString> m_packetPool;

defined in abc.cpp

m_packetPool.SetAt(1,"hello");

Then fail in the line of afxtempl.h
m_pFreeList=m_pFreeList->Next;

Could anybody help me? It is extremely urgent.

Thank you very much.

Best regards,
Paul