|
楼主 |
发表于 2010-11-5 18:06:34
|
显示全部楼层
2# array
我照你说的改了,不过在下面这里出错了,
static void _callthreadstartex(void)
{
_ptiddata ptd; /* pointer to thread's _tiddata struct */
/* must always exist at this point */
ptd = _getptd();
/*
* Guard call to user code with a _try - _except statement to
* implement runtime errors and signal support
*/
__try {
_endthreadex (
( (unsigned (__CLR_OR_STD_CALL *)(void *))(((_ptiddata)ptd)->_initaddr) )
( ((_ptiddata)ptd)->_initarg ) ) ;
}
__except ( _XcptFilter(GetExceptionCode(), GetExceptionInformation()) )
{
/*
* Should never reach here
*/
_exit( GetExceptionCode() );
} /* end of _try - _except */
}
具体地方是(((_ptiddata)ptd)->_initarg))这句,调试提示访问冲突,我用的是网上的osgMFC
单文档的那个框架。估计是多线程出问题了,能不能在MFC下做个单线程的osg框架呢? |
|