You develop an application to examine the chat messages in each chat room by using Microsoft Lync Server 2010 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.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.