7点30左右接到洪工保障,平台弹出User breakpoint提示框,当时调用栈如下:
MSVCRTD! 10211920()
MSVCRTD! 10211863()
MSVCRTD! 10211836()
MSVCRTD! 1020e1be()
ACED! 0052a95f()
ACED! 00533774()
ACED! 00533fd5()
ACED! 00533a26()
HTX_Task_Base::enqueue(CWrappedMsg<umxns::CUMXApp> * 0x314d9650, unsigned char 0) line 60 + 68 bytes
HTX_Dispatcher::handle_message_block(ACE_Message_Block * 0x314d9710) line 100 + 19 bytes
HTX_Task_Base::svc() line 103 + 17 bytes
ACED! 00585301()
ACED! 00585ab7()
ACED! 005859e4()
ACED! 004fa836()
MSVCRTD! 1020c323()
KERNEL32! 7c824829()
停在HTX_Task_Base::enqueue方法的ACE_NEW_RETURN处,代码如下:
int HTX_Task_Base::enqueue(CWrappedMsg<> *wm,bool preemptive) {
ACE_Message_Block *mb = 0;
ACE_NEW_RETURN(mb,ACE_Message_Block(sizeof(CWrappedMsg<>*)),0);
memcpy(mb->wr_ptr(), &wm, sizeof(CWrappedMsg<>*));
mb->wr_ptr(sizeof(CWrappedMsg<>*));
// static int msg_deadline[] = {1000,100,10,1}; /// MP_LOW,MP_NORMAL,MP_HIGH,MP_URGENT
// ACE_Time_Value tv;
// tv.set(msg_deadline[wm->msg->GetMsgPriority()-1]);
// ACE_Time_Value deadline(ACE_OS::gettimeofday()+tv);
// mb->msg_deadline_time(deadline);
// return msg_queue()->enqueue_prio(mb);
// return msg_queue()->enqueue_tail(mb);
return preemptive ? msg_queue()->enqueue_head(mb) : msg_queue()->enqueue_tail(mb);
}
查看Output窗口未出现任何异常.
在ACE_NEW_RETURN的下一行设置端点,并观察上下文变量及地址,8点30分左右按下F5继续运行。在端点处观察变量发现是同一个
线程,从而证明出问题的线程没有异常退出,然后健康。
8点30左右继续运行平台(未重起)