Jeff S Thompson 8.Jan.04 04:41 PM a Web browser Deverloper Toolkits 3.0 Windows NT/2000
Hi, I'm trying to write a instant messaging client using the 3.1 C++ sametime toolkit.
My client would startup/shutdown successfully when using only the CommunityService and AwarenessService. I have added the InstantMessage service to my application and now it hangs during the delete of the STSession object.
My startup code is:
m_pSession = new STSession(L"foo");
m_pCommunityService = new CommunityService(m_pSession);
m_pAwarenessService = new AwarenessService(m_pSession);
m_pImService = new InstantMessagingService(m_pSession);
m_pLoginListener = new MyLoginListener(this);
m_pImServiceListener = new MyImServiceListener(this);
m_pServiceListener = new MyServiceListener(this);
Shutdown now hangs when the "delete m_pSession" is executed and I eventually get an access violation in NTDLL.DLL after a long wait.
Does it look like I've generally created and destroyed the sametime environment correctly?
Could an orphaned Im object cause the hang at shutdown? I create/delete the Im objects as the chat sessions are started/ended. I believe I am deleting all Im objects at shutdown, but it could be a bug I suppose.