|
|

楼主 |
发表于 2006-9-16 14:36:00
|
显示全部楼层
Re:大家帮忙来纠错:GetClientRect Failed ?
采用逐语句调试,当箭头指向ZeroMemory( &d3dpp, sizeof(d3dpp) );
输出D3D9 Helper: Enhanced D3DDebugging disabled; Application was not compiled with D3D_DEBUG_INFO
当箭头指向 g_pd3dDevice->SetRenderState( D3DRS_ZENABLE, TRUE );
输出Direct3D9: (INFO) :======================= Hal SWVP device selected
当点击窗口右上方关闭按钮时输出:
Direct3D9: (ERROR) :GetClientRect Failed ?
Direct3D9: (ERROR) :GetClientRect Failed ?
Direct3D9: (ERROR) :BitBlt or StretchBlt failed in Present
...
网上搜索的结果:是消息处理流程上的问题。先把窗口破坏了然后才中止绘图线程。我的程序中没有用GetClientRect,可能是Windows或者DirectX的函数中有调用它的。在发生错的时候,从VC的调用堆栈当中找,看是那个dx的函数调用的
|
|