程序有TreeCtrl控件,我在线程中要遍历TreeCtrl控件,但是当我线程处理完成的时候。
却出现了这个错误, 实际上我使用的是wxWidget做界面,线程也是用wxThread的一个分离线程,但是本质上应该跟语言没关系吧。
该错误如救火啊, 就算给点意见或建议都行啊,各位看官。help...详细错误信息见下面。9:47:53: ..\..\src\msw\dc.cpp(1352): 'TextOut' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1352): 'TextOut' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000000 (操作成功完成。).
09:47:53: ..\..\src\msw\dc.cpp(1352): 'TextOut' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1352): 'TextOut' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1352): 'TextOut' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1352): 'TextOut' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1352): 'TextOut' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1352): 'TextOut' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000057 (参数不正确。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(1769): 'GetTextExtentPoint32()' failed with error 0x00000006 (句柄无效。).
09:47:53: ..\..\src\msw\dc.cpp(454): 'ExtSelectClipRgn' failed with error 0x00000006 (句柄无效。).
线程 'Win32 线程' (0x438) 已退出,返回值为 0 (0x0)。
09:47:54: C:\wxWidgets-2.8.8\include\wx/msw/private.h(338): 'GetWindowRect' failed with error 0x00000578 (无效的窗口句柄。).
09:47:54: C:\wxWidgets-2.8.8\include\wx/msw/private.h(338): 'GetWindowRect' failed with error 0x00000578 (无效的窗口句柄。).
……
09:47:54: ..\..\src\msw\window.cpp(569): 'DestroyWindow' failed with error 0x00000578 (无效的窗口句柄。).
线程 'Win32 线程' (0xd34) 已退出,返回值为 0 (0x0)。
程序“[2848] ExcelViewer2-wxd.exe: 本机”已退出,返回值为 0 (0x0)。