应用程序“无法正确初始化” [英] Application "Failed to initialize properly"

查看:138
本文介绍了应用程序“无法正确初始化”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有VS 2005 dll项目。 DLL正确加载测试应用程序。

当我使用VS迁移向导将DLL项目转换为VS 2008项目时。它成功编译并生成DLL。但是当我运行Test应用程序时,它会触发错误



应用程序无法正确初始化(0xc0000142)。



测试应用程序也是VS 2008项目。所有必需的依赖项都已到位并仅使用VS 2008编译。

任何人都可以告诉/帮助我背后的原因。


-Prafulla





LITTLE UPDATE



我我在我的一个依赖dll中使用 OCI (Oracle C接口)API。当我评论

I have VS 2005 dll project. DLL gets load in test application properly.
When i converted the DLL project to VS 2008 project using VS migration wizard.It compiles successfully and produces a DLL. But when i run Test application , It fires the error

The application failed to initialize properly (0xc0000142).

Test application is also a VS 2008 project. All required dependencies are in place and compiled using VS 2008 only.
Can anyone tell/help me the reason behind it.

-Prafulla


LITTLE UPDATE

I am using OCI(Oracle C interface) API in one of my dependent dll. When i commented

OCI_Cleanup()

OCI_Initialize()

函数调用时,应用程序成功执行。



有谁可以告诉我这些OCI功能会出现什么问题。

function calls, Application gets executed successfully.

Can anybody tell me what would be the problem with these OCI functions.

推荐答案

你看到了吗?这个:



http:// forums。 techarena.in/windows-xp-support/862261.htm [ ^ ],



http://www.wiki-errors.com/wiki-errors.php?wiki=0xC0000142 [ ^ ]。



-SA
Did you see this:

http://forums.techarena.in/windows-xp-support/862261.htm[^],

http://www.wiki-errors.com/wiki-errors.php?wiki=0xC0000142[^].

—SA


您的开发机器或其他机器上是否会发生错误?



您可能只需要为visual c ++ 2008安装可再发行软件包:

http://www.microsoft.com/downloads/en/details.aspx?familyid=9b2da534-3e03 -4391-8a4d-074b9f2bc1bf& displaylang = en [ ^ ]

或Visual C ++ 2008 SP1:

http://www.microsoft.com/downloads/fr-fr/details?。 aspx?FamilyID = a5c84275-3b97-4ab7-a40d-3802b2af5fc2 [ ^ ]



我在Dev机器上遇到此错误。



您使用的是 OpenCV 还是其他一些图书馆?几个星期前,我头疼,因为我升级了我的OpenCV,我也有类似的错误。我无法使用Visual Studio 2008正常工作,所以我放弃了,回到了以前的版本......
Does the error happen on your dev machine, or a different one?

You may just need to install redistributable packages for visual c++ 2008:
http://www.microsoft.com/downloads/en/details.aspx?familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en[^]
Or Visual C++ 2008 SP1:
http://www.microsoft.com/downloads/fr-fr/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2[^]

I face this error on Dev machine.

Are you using OpenCV or some other libraries? A few weeks ago, I had headaches because I upgraded my OpenCV and I had a similar error. I couldn't make it work properly with Visual Studio 2008 so I gave up and went back to the previous version I had...


看看这个链接:



http ://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/3133b62e-4606-4aeb-a393-abaca6a43005/ [ ^ ]
Check out this link:

http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/3133b62e-4606-4aeb-a393-abaca6a43005/[^]


这篇关于应用程序“无法正确初始化”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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