|
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_High_Res_Timer::global_scale_factor ();
ACE_Reactor::instance()->timer_queue()->gettimeofday(&ACE_High_Res_Timer::gettimeofday_hr);
if (ACE_OS::access (ACE_DEFAULT_SVC_CONF, F_OK) != 0)
{
// Use static linking.
ACE_Service_Object_Ptr sp = ACE_SVC_INVOKE (Gateway);
if (sp->init (argc - 1, argv + 1) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("%p\n"),
ACE_TEXT ("init")),
1);
ACE_Reactor::instance()->restart(1);
ACE_Reactor::instance ()->run_reactor_event_loop ();
// Destructor of <ACE_Service_Object_Ptr> automagically call
// <fini>.
}
return 0;
}
Debug版本时就没错,release版本老是报错。
程序关闭时,老是出错,出现读取位置访问冲突。经过调试,发现出错是在return 0后,又调用ACE_tmain()这里;我想单步调试,但这里好像没法调试。求助大虾帮忙啊 |
|