应用程序退出时:
程序“12868 AppName.vshost.exe”的代码为1073741855 (0x4000001f)。
以下是守则:
互相调用Export()
两次:使用上述日志记录的崩溃两次调用Export()
中的Export()
内容(内部作用域),并且不会崩溃。
这是可重复的,我不知道从哪里开始。
private void btnExport_Click(object sender, RoutedEventArgs e)
{
Enable(false);
statusbar.Message = "Exporting...";
Task t = new Task(Export);
t.ContinueWith(ExportEnd);
t.Start();
}
private void Export()
{
{
PBNSectionDictionary source = ctrlSectionSelection.SectionSelection.SelectSections;
PBNSectionDictionary dict = new PBNSectionDictionary();
foreach (string sectionType in source.Keys)
{
if (source[sectionType] != null)
{
dict[sectionType] = collector.ReadFullSection(source[sectionType]);
}
}
PBNFMV.Export.PBNExport export = new PBNFMV.Export.PBNExport(new Lms.Custom.Files.AdvancedFileLocator(Constants.NAME), dict, manager);
export.Export();
dict.Dispose();
}
}
private void ExportEnd(Task t)
{
Enable(true);
statusbar.Message = "Export done";
}
事件日志:
故障应用程序名称: PBNFMV.exe,版本: 16.2.0.0,时间戳: 0x58aeadf2故障模块名称: ntdll.dll,版本: 6.1.7601.23569,时间戳: 0x57f7bb79异常代码: 0xc0000374故障偏移量: 0x000ce8fb故障进程id: 0xxbd4故障应用程序启动时间: 0x01d28db92a6d6c1e故障处理应用程序路径: C:\APPPATH\source\PBNFMV\bin\Debug\PBNFMV.exe故障处理模块路径: C:\windows\SysWOW64\ntdll.dll报告Id: 72f988f9-f9ac-11e6-8d91-8ddf7000fd
完全启用异常设置:
C++异常、公共语言运行库异常、gpu内存访问异常、托管调试测试器、win32异常
发布于 2017-03-03 12:23:20
这个问题解决了。
因此:非常奇怪。
这是由于进一步构造了一个对象(!)在代码执行中,这会使事情崩溃(因为库中的实现很糟糕)。
奇怪的是,为什么这个对象已经被实例化了,我相信在.net运行时会有一些优化。
向您道歉
https://stackoverflow.com/questions/42413553
复制相似问题