1、跨进程dll发送(process_event)事件(boost::statechart::event)会导致不明异常;
--> 解决办法:把派生于Event的事件类导出为dll,具体参看boost自带的TuTest例子和Statechart FAQ;
2、多线程时,在某线程发送(process_event)事件(boost::statechart::event)会导致“pOutermostUnstableState_”为空中断;
本文分析了在DLL环境下使用Boost状态机发送事件导致的不明异常及多线程中发送事件引发的&pOutermostUnstableState_”为空的问题,并提供了解决方案。
1、跨进程dll发送(process_event)事件(boost::statechart::event)会导致不明异常;
--> 解决办法:把派生于Event的事件类导出为dll,具体参看boost自带的TuTest例子和Statechart FAQ;
2、多线程时,在某线程发送(process_event)事件(boost::statechart::event)会导致“pOutermostUnstableState_”为空中断;

被折叠的 条评论
为什么被折叠?
