应用程序在调试模式下工作但在Release中不工作

应用程序在调试模式下工作但在Release中不工作

问题描述:

我正在使用Visual Studio 2010 64位编译器编译应用程序。它编译没有错误。应用程序的调试版本运行正常。然而,Release版本在启动时崩溃,出现以下2个错误:



错误的应用程序名称:Router.exe,版本:1.0.0.1,时间戳:0x536ba26e

错误模块名称:mfc100.dll,版本:10.0.40219.325,时间戳:0x4df2cfda

异常代码:0xc0000005



错误应用程序名称:Router.exe,版本:1.0.0.1,时间戳:0x536ba26e

错误模块名称:ntdll.dll,版本:6.1.7601.18247,时间戳:0x521eaf24

异常代码:0xc0150010



我已经检查了项目属性,并确保它们与Debug和Release相同。请帮忙。

I am compiling an application using Visual Studio 2010 64 bit compiler. It compiles without errors. The Debug version of the application runs fine. However the Release version crashes on start-up with the following 2 errors:

Faulting application name: Router.exe, version: 1.0.0.1, time stamp: 0x536ba26e
Faulting module name: mfc100.dll, version: 10.0.40219.325, time stamp: 0x4df2cfda
Exception code: 0xc0000005

Faulting application name: Router.exe, version: 1.0.0.1, time stamp: 0x536ba26e
Faulting module name: ntdll.dll, version: 6.1.7601.18247, time stamp: 0x521eaf24
Exception code: 0xc0150010

I already checked the project properties and made sure they are the same for Debug and Release. Please, help.

强制性参考:新人的幸存版本文章 [ ^ ]。