The EndQueryChatHistory API throws an unhandled exception in an Office Communications Server 2007 R2 Group Chat SDK-based application


Symptoms


You develop an application to examine the chat messages in each chat room by using Microsoft Office Communications Server 2007 R2 Group Chat SDK. In this application, you use the ChatRoomSession.EndQueryChatHistory method. If there are no chat messages in the chat room, the EndQueryChatHistory API throws an unhandled exception. This behavior causes the application to crash.

Resolution


To resolve this issue, install the following cumulative update:
2603299 Update package for Office Communications Server 2007 R2 Group Chat SDK: September 2011


More Information


For more information about the ChatRoomSession.EndQueryChatHistory method, visit the following Microsoft website: