### 搞定UCP4.5-0429开发环境(home)
1. info server
* 直接F5
$20111117 18:57:53.828 2264/12320 ERROR: CRtAcceptorTcp::StartListen, bind() failed! addr=192.168.1.100 port=1224 err=10049:在其上下文中,该请求的地址无效。
this=0x16c9628
显然config文件不正确
* 配置iwlab.ini
* 文件位置:
ROOT/bin/dls/Debug/conf(需要配置项目working dir)
或
PROJECT_ROOT/conf(默认working dir就是project主目录)
2. gc
3. client
* crash
ControllerList=tcp://192.168.1.101:9999
改成
ControllerList=tcp://192.168.1.101:443
OK!
### 跟踪执行confmain.exe
1. WinMain()
* steps
launch rtTraceSpy.exe
load rtDiagnose.dll
load rtConfClient.dll
start debug ( what's this ???? ) // rtDiagnose.dll
launch conf client // rtConfClient.dll
end debug
* 几个宏
#define WT_CLIENT_DLL _T("rtConfClient.dll")
#define WT_CLIENT_RUN _T("LaunchConf")
#define WT_DEBUG_DLL _T("rtDiagnose.dll")
#define WT_DEBUG_RUN _T("ILDebugOption")
#define WT_DEBUG_START _T("ILDebugStart")
#define WT_DEBUG_DESTORY _T("ILDebugDestory")
* 问题
if(NULL==ShellExecute(NULL, _T("Open"), TOOLS_TRACE_SPY, trace_param, NULL, SW_SHOW))
{
Debug_Info("can't launch tool - IWLTraceSpy!");
}
Q:rtTraceSpy.exe为何没有找到进程?
Q:rtDiagnose.dll工程在哪里?
A:在ConfApp/Util/ILDebug中。
2. ConfCient.cpp::LaunchConf()
3. ConfClient.cpp::Run() // 消息循环
4. CMainFrame:主窗口
5. CConfClientView:主视图???
6. CConfManage:主界面的所有管理功能