发布将无法运行 [英] Release won't run

查看:78
本文介绍了发布将无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(请原谅我不知道在哪里发布这个。

我选择了我认识的最大和最好的观众。)


我是无法从VC7运行我的发布版本。

它没有。启动时,它只显示一个消息框,说明无法使用
初始化应用程序+十六进制地址+确定按钮将其关闭。


调试版本运行良好来自

VC ++项目向导(发布和调试)的测试MDI应用程序。


因此我认为这不是代码或VC7设置这让我失望。

它必须是我的系统与我的应用程序。我在建立我的应用程序时确实得到了一个蓝色的

死亡屏幕,但

无法解释为什么其他任何内置工作正常。

我尝试过重建解决方案没有运气。


接下来你会尝试什么?


一个dll问题?


TIA,


Markus

(Please excuse me for not really knowing where to post this.
I picked the biggest and best audience I know of.)

I am having trouble running my release build from VC7.
It doesn''t. When started, it just shows a message box about failing to
initialize app + hex address + OK button to close it down.

The debug build runs fine as does a test MDI app from
VC++ project wizards (both release and debug).

Hence I think it''s not the code or VC7 setup that fails me.
It must be my system with my app. I did get a blue
screen of death a while ago when building my app but
that does not explain why anything else built works ok.
I have tried "Rebuild Solution" with no luck.

What would you try next?

A dll issue?

TIA,

Markus

推荐答案

嘿,


您是否将资源与dll相关联?我有一个问题女巫是

退出与你的相似。我们在dll中编译资源,然后我们将b $ b链接到我们的主程序。问题是,当您在调试模式下编译

资源时,您的程序在发布时就是程序

不会启动。

当您使用VS7时,您可以在函数InitInstance()中设置断点(或使用消息框)

。如果他来到那里,一步一步地通过

你的程序,看看它产生错误的地方。我发布的大部分内容都是由于我忘记发起的变量问题。


希望能帮到你

Peter
Hey,

Are you linking your resources with a dll? I had A problem witch was
quit similar to yours. We compile our resources in a dll and then we
link it to our main program. Problem is that when you compile your
resources in debug mode and your program in release you''re program
won''t start.

When you are using VS7 you can set a breakpoint(or use a message box)
in the function InitInstance(). If he comes there, go step by step thru
your program and see where it generates the fault. Most of my release
problems or due to variables I forgot to initiate.

In the hope it helps you
Peter


Peter Dedrie写道:
Peter Dedrie wrote:
当您使用VS7时,您可以设置断点(或使用消息框)在函数InitInstance()中。如果他来到那里,一步一步地通过你的程序,看看它产生错误的地方。我发布的大多数问题或由于我忘记启动的变量。
When you are using VS7 you can set a breakpoint(or use a message box)
in the function InitInstance(). If he comes there, go step by step thru
your program and see where it generates the fault. Most of my release
problems or due to variables I forgot to initiate.




这是真的。很好,调试模式实际上管理你的内存

更好,直到你在发布模式下运行

它才能检测到很多内存问题。


A



That is true. Wierdly enough, Debug mode actually manages your memory
better so many memory problems won''t actually be detected until you run
it in Release mode.

A


它永远不会到达我的CWinApp派生类的InitInstance()。

之前失败了。此外,我们团队的其他成员能够在发布模式下构建和运行相同的代码,因此我不会认为这是一个链接问题(不是我知道什么连接

资源与dll甚至意味着。不要以为我们这样做。)


Markus

" Peter Dedrie" < Pe的*** @ test.com>在消息中写道

新闻:iP ******************** @ edpnet.net ...
It never reaches InitInstance() of my CWinApp derived class.
It fails before that. Also, other members of our team are able
to build and run the same code in release mode so I don''t
think it is a linking issue either (not that I know what linking
resources with a dll even means. Don''t think we do that.)

Markus

"Peter Dedrie" <Pe***@test.com> wrote in message
news:iP********************@edpnet.net...
嘿,

您是否将资源与dll链接?我有一个问题,女巫是退出类似于你的。我们在dll中编译资源,然后将它链接到我们的主程序。问题是,当您在调试模式下编译
资源时,您的程序在发布时,您的程序将无法启动。

当您使用VS7时,您可以在函数InitInstance()中设置断点(或使用消息框)
。如果他来到那里,一步一步地通过你的程序,看看它产生错误的地方。我发布的大多数问题或由于我忘记启动的变量。
Hey,

Are you linking your resources with a dll? I had A problem witch was
quit similar to yours. We compile our resources in a dll and then we
link it to our main program. Problem is that when you compile your
resources in debug mode and your program in release you''re program
won''t start.
When you are using VS7 you can set a breakpoint(or use a message box)
in the function InitInstance(). If he comes there, go step by step thru
your program and see where it generates the fault. Most of my release
problems or due to variables I forgot to initiate.



这篇关于发布将无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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