C#开发,软件运行着会直接关闭……偶尔会提示软件崩溃,但是按调试什么痕迹都没留下……

WoooXVi 2011-04-01 05:08:49
很多情况都直接关闭掉了,我擦……
但是偶尔会提示出错。但是软件还能正常运行(过一会就崩了)

提示出错的话,按调试,VS无法追踪任何代码。只在输出窗口提示了以下信息:

我都快要疯了,各位前辈救命……




VS的输出窗口提示的信息如下:

“UI.exe”: 已加载“D:\Src\Debug\UI.exe”,符号文件中不存在本机符号。
“UI.exe”: 已加载“C:\WINDOWS\system32\ntdll.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\mscoree.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\kernel32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\advapi32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\rpcrt4.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\secur32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\shlwapi.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\gdi32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\user32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msvcrt.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\imm32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\lpk.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\usp10.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msvcr100_clr0400.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\mscorlib\cece9d0256e18427b64587ba690605d4\mscorlib.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\ole32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\MSCTF.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Culture.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clrjit.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System\7169c473071af03077b1cd2a9c1dbcbe\System.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Drawing\cad0df97be252ddb80a846b61f26a4dd\System.Drawing.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\039d68cb3f0e971d7d44a92dc6a259bf\System.Windows.Forms.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\xpsp2res.dll”,未使用调试信息生成二进制文件。
“UI.exe”: 已加载“C:\WINDOWS\system32\uxtheme.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Core\4a9f25bff4bb74c9b6a21091923307d2\System.Core.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Data\3160e392f776532556cccae8fd9e7fd6\System.Data.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\ws2_32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\ws2help.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\crypt32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msasn1.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Xml\282e409391657633e44fd8c290240446\System.Xml.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Data.DataSet#\de7e8579acb9c2dec28d12f8fe51cbcc\System.Data.DataSetExtensions.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Numerics\5530add859118154e2c021c9c13e34c0\System.Numerics.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Configuration\ce74542c47679fb707831ba40f03c151\System.Configuration.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\urlmon.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\version.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\comctl32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\rsaenh.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\shfolder.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Transactions\66756cfe9f8208cb9aff998bce3fed02\System.Transactions.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\sxs.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\clbcatq.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\comres.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\oleaut32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\Program Files\Common Files\System\Ole DB\oledb32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msdart.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\comdlg32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\shell32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\Program Files\Common Files\System\Ole DB\oledb32r.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msjetoledb40.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msjet40.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\mswstr10.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msjter40.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msjint40.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\comsvcs.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\colbact.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\mtxclu.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\wsock32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\netapi32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\clusapi.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\resutils.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\userenv.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.EnterpriseSe#\f83143520b75105fe37a4a94000bee99\System.EnterpriseServices.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.EnterpriseSe#\f83143520b75105fe37a4a94000bee99\System.EnterpriseServices.Wrapper.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msjtes40.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\vbajet32.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\expsrv.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Messaging\edb4dea3223b17ee40343af6f5836e98\System.Messaging.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\mqrt.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msvcp60.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\mqsec.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\mqutil.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\security.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6001.22319_x-ww_f0b4c2df\GdiPlus.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\msctfime.ime”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\mslbui.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\Program Files\Common Files\System\ado\msadrh15.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\CustomMarshalers\202b9dc8eb5a7bbb2738b0ab5dd484ea\CustomMarshalers.ni.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\Microsoft.NET\assembly\GAC_32\CustomMarshalers\v4.0_4.0.0.0__b03f5f7f11d50a3a\CustomMarshalers.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\setupapi.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\samlib.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\winspool.drv”,Cannot find or open the PDB file
“UI.exe”: 已加载“C:\WINDOWS\system32\apphelp.dll”,Cannot find or open the PDB file
“UI.exe”: 已加载“D:\Src\Debug\Decode.dll”,未使用调试信息生成二进制文件。
...全文
555 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
creactivelife 2012-05-07
  • 打赏
  • 举报
回复
请教一下,这个是出现什么问题?
Warning: Destroying non-NULL m_pMainWnd
tab_sheet_pro.exe 中的 0x55cf3b39 处最可能的异常: 0xC0000005: 读取位置 0xfefeff66 时发生访问冲突
tab_sheet_pro.exe 中的 0x55cf3b39 处有未经处理的异常: 0xC0000005: 读取位置 0xfefeff66 时发生访问冲突
程序“[6052] tab_sheet_pro.exe: 本机”已退出,返回值为 -1073741819 (0xc0000005)。
ianam 2011-04-01
  • 打赏
  • 举报
回复
做异常处理..
WoooXVi 2011-04-01
  • 打赏
  • 举报
回复
请问楼上的,如何单步呢?……
WoooXVi 2011-04-01
  • 打赏
  • 举报
回复
有打日志的,但是崩得很随机……

没有什么规律性可言……

悲剧……
billsquall 2011-04-01
  • 打赏
  • 举报
回复
养成随时随地记录日志的好习惯,所有位置都有log记录,看看哪里运行了,哪里没运行
cc_net 2011-04-01
  • 打赏
  • 举报
回复
你单步调试下
WoooXVi 2011-04-01
  • 打赏
  • 举报
回复
0xc0000005……

是不是有线程访问了不存在的内存?
但C#……

这个程序是C# + C++的,有一个dll是C++封装的

但是开软件,那个DLL的方法都还没执行到呀……怎么就崩了,而且还绷得那么随机……


请教一下这个问题有什么可能性,或者有什么好办法可以调试……

现在代码追都追不进去……
ILOVE_ASPNET 2011-04-01
  • 打赏
  • 举报
回复
估计是代码出问题了,具体什么问题俺也不知道,只能猜测看提示信息好像是没有找到文件吧
WoooXVi 2011-04-01
  • 打赏
  • 举报
回复
太长了,分两截:


线程 'Win32 线程' (0x83c) 已退出,返回值为 0 (0x0)。
线程 'Win32 线程' (0x9b4) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xd98) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xe30) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0x448) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xe04) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0x908) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xaac) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xfd4) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xa00) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xbac) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xf90) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xaa4) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0x53c) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0x8c8) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0xfcc) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0x74) 已退出,返回值为 -1073741819 (0xc0000005)。
线程 'Win32 线程' (0x714) 已退出,返回值为 -1073741819 (0xc0000005)。
程序“[2344] UI.exe: 本机”已退出,返回值为 -1073741819 (0xc0000005)。

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧