在调试模式下构建的VS2008程序会崩溃,但在发布模式下不会崩溃 [英] VS2008 program built in Debug mode crashes but does not in Release mode

查看:89
本文介绍了在调试模式下构建的VS2008程序会崩溃,但在发布模式下不会崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Debug模式下可以正常运行的程序,但是在程序启动时崩溃,没有提供任何错误。但是,该程序在发布模式下构建时,可以完美运行。

I have a program that builds fine in Debug mode, but crashes upon start of the program without any errors being provided. However, this program, when built in Release mode, runs perfectly.

但是,在发布模式下运行时,该程序确实会不时崩溃,但始终会启动起来很好。所以有问题。

However, the program does crash from time to time when running in Release mode, but it will always start up fine. So there is something wrong.

我不知道要添加什么,因为我真的不知道,并且想知道你们是否可以提供任何想法。

I don't know what else to add because I really have no idea and was wondering if you folks could provide any ideas at all.

谢谢。

推荐答案

这听起来很糟糕。也许:

This sounds like a bad build. Perhaps:


  1. 混合调试/发布dll

  2. 用于静态或动态链接的项目设置不正确

  3. 混合运行时的单线程/多线程版本。

  4. 错误的32位/ 64位设置,导致不匹配exe和dll之间。

  1. Mixing debug / release dlls
  2. Incorrect project settings for whether to statically or dynamically link with the runtime library.
  3. Mixxing single / multi threaded versions of the runtime.
  4. Incorrect 32-bit / 64-bit settings, causing a mismatch between the exe and dlls.

这篇关于在调试模式下构建的VS2008程序会崩溃,但在发布模式下不会崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆