浏览:3132008-03-18 20:27   来自蓝色的风之精灵      :
2008-3-18 20:19:47  状态改变成功,新状态是:AWAY
2008-3-18 20:19:52  出错啦:The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at QQServer.Main.MessageManager_ReceiveNormalIM(Object sender, QQEventArgs`2 e)
   at LumaQQ.NET.MessageManager.OnReceiveNormalIM(QQEventArgs`2 e)
   at LumaQQ.NET.Events.BasicFamilyProcessor.ProcessReceiveIM(ReceiveIMPacket packet)
   at LumaQQ.NET.Events.BasicFamilyProcessor.PacketArrived(InPacket inPacket)
   at LumaQQ.NET.Events.ProcessorRouter.PacketArrived(InPacket inPacket)
2008-3-18 20:19:52  包发送成功:包类型: Get_Friend_List 序号: 20913 时间:2008-3-18 20:19:52
2008-3-18 20:19:52  共得到5位好友
楼主
  3个月前   阿不      :
这个不是Lumaqq.net的bug,是你在事件代码里的错误吧,你仔细检查一下BUG。
回复  1楼 回到顶楼 
  3个月前   蓝色的风之精灵      :
MessageManager_ReceiveNormalIM这个函数我没有改过什么啊,就是用的你的例子里的写法
private void MessageManager_ReceiveNormalIM(object sender, QQEventArgs e)
{
string nick = e.QQClient.QQUser.Friends[e.InPacket.NormalHeader.Sender].BasicInfo.Nick;
this.WriteError("收到好友:{0}/{1} 发来的信息:{2}", new object[] { e.InPacket.NormalHeader.Sender, nick, e.InPacket.NormalIM.Message });
e.QQClient.MessageManager.SendIM(e.InPacket.NormalHeader.Sender, string.Format("我收到你的消息:{0}", e.InPacket.NormalIM.Message));
}


回复  2楼 回到顶楼 
  3个月前   蓝色的风之精灵      :
难道我收到了不存在与好友列表里的用户发来的消息?
嗯,明白了,消息比获取好友列表成功事件还要早
是这里出了问题
回复  3楼 回到顶楼 
  3个月前   阿不      :
是,可能是这个原因。:)
回复  4楼 回到顶楼 

你还不是小组成员,加入小组以后才能发布新主题!
1 31040