Visual Studio错误ntstatus 0xc0150002 [英] Visual Studio error ntstatus 0xc0150002

查看:61
本文介绍了Visual Studio错误ntstatus 0xc0150002的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我对视觉工作室有点新意。

我在构建项目时遇到以下错误。

展开 | 选择 | Wrap | >行号

解决方案

Visual Studio有两种类型的构建:发布和调试。


发布版本不包含支持调试器的代码,而Debug版本则支持调试器。这意味着由于调试器支持代码,Debug版本比Release版本更大,运行速度更慢。 Debug构建还需要一个.pdb文件(由Visual Studio构建和维护的程序数据库)。


您会发现将Debug可执行文件移动到另一台计算机将导致运行时崩溃,因为缺少.pdb文件。


默认构建是Debug。


这意味着你的.DLL需要是一个调试DLL。看起来你有一个relase build DLL。大多数DLL都有两个版本。通常的惯例是发布版本的MyDll.dll和调试版本的MyDllD.dll。


调试完成后你准备好发布你的可执行文件,然后你做了一个最终版本构建并发送出来。


使用配置管理器在Release和Debug之间切换构建类型。





感谢您的快速回复,


我正在使用调试模式。

我给了一个完整的清理并构建我的整个项目处于调试模式,然后我也收到了这个错误。


你能告诉我在哪里可以找到配置管理器


Shoonya


转到您的项目属性。


右上角有一个标有Configuration Manager的按钮。

Hi,
I am bit new to visual studio.
I am having following error while building the project.

Expand|Select|Wrap|Line Numbers

解决方案

Visual Studio has two types of builds: Release and Debug.

Release builds do not contain code to support the debugger whereas Debug builds do. It means that Debug builds are larger and run slower than Release builds due to that debugger support code. Debug builds also require a .pdb file (program database built and maintained by Visual Studio).

You will find that moving your Debug executable to another computer will cause a crash at run time because the .pdb file is missing.

The default build is Debug.

That means your .DLL needs to be a debug DLL. It looks like you have a relase build DLL. Most DLLs come in both versions. The usual convention is MyDll.dll for the Release version and MyDllD.dll for the debug version.

After your debugging is complete and you are ready to distribute your executable, then you make a final Release build and send that out.

You switch the build type between Release and Debug by using your Configuration Manager.


Hi,

thanks for the prompt reply,

I am using debug mode.
I gave a full clean and build my whole project in debug mode, then also I am getting this error.

Can you tell me where to find "configuration manager"

Shoonya


Go to your Project Properties.

There is a button in the upper-right corner labeled "Configuration Manager".


这篇关于Visual Studio错误ntstatus 0xc0150002的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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