locked
The application was unable to start Correctly (0xc0150002) RRS feed

  • Question

  • Hi,

    i trying to run my application VS2005 in windows 7.It's error as .The application was unable to start correctly (0xc0150002).Click OK to close the application.

    Can you please suggest me how to resolve the problem as soon as possible.

    Thanks in advance,

    Murugan k

     

     

     

     

     

    Thursday, January 13, 2011 7:58 AM

Answers

  • On 13/01/2011 08:58, Dravid wrote:

    i trying to run my application VS2005 in windows 7.It's error as .The application was unable to start correctly (0xc0150002).Click OK to close the application.

    Can you please suggest me how to resolve the problem as soon as possible.

    Try to statically link with CRT (and ATL/MFC if your app is using them, too).

    Giovanni

    Thursday, January 13, 2011 7:33 PM
  • Hello,

    yes, you may try re-installing the package and give us your result.

    Try also to statically link libraries which can be statically link(CRT, MFC/ATL or 3rd party library) as suggested Giovanni.


    Nicolò Zilio
    Personal blog: http://nicolozilio.wordpress.com/(With technical articles)
    Personal Web site: http://nicolozilio.altervista.org/
    Wednesday, January 19, 2011 3:47 PM
  • The app links to a couple of 3rd party DLLs which were (possibly) built with an older or newer version than mine. 

    DLL's that are produced by third parties are often dependent on a particular version of the compiler. This is often stipulated in the associated documentation. It really depends on the sophistication of the third party, since it is possible to produce DLL's that are independent of the compiler version. The best bet is to contact the 3rd party first and find out if the DLL is compatible with VS2005.
    Wednesday, January 19, 2011 5:41 PM
  • On 19/01/2011 16:42, johne53 wrote:

    I've encountered the same problem today whilst building an application with Visual Studio 2005. The app links to a couple of 3rd party DLLs which were (possibly) built with an older or newer version than mine. Would that mean that I too need to install the VS2005 redistribution pack?

    If the DLL's export a pure C interface (like several Win32 API's), or a COM interface (like some Win32 API's), then you can use them from a compiler different from the one used to build those DLL's.

    But, in general, when using DLL's exporting C++ interfaces, you should pay attention to use them with code compiled with the same compiler and the same compiler settings (it's a strong constraint).

    As Brian wisely recommended, you may want to contact the DLL vendor for more information.
     > [Edit...] or should I maybe update to the latest service pack for VS2005??

    You may give it a try...

    Giovanni

    Wednesday, January 19, 2011 7:49 PM

All replies

  • Can you write other details of your application?

    Have you install the correct redistributable package yet?


    Nicolò Zilio
    Personal blog: http://nicolozilio.wordpress.com/(With technical articles)
    Personal Web site: http://nicolozilio.altervista.org/
    Thursday, January 13, 2011 1:03 PM
  • Are you trying to run the application on a machine other than the one it was built on? If so, install the Visual Studio 2005 redistributable as suggested by Nicolò. Otherwise, you need to provide more details.
    Thursday, January 13, 2011 4:06 PM
  • 0xC0150002 (as an NTSTATUS error) is a side by side failure (STATUS_SXS_CANT_GEN_ACTCTX) check your manifest and also look in the event log for additional details.
    Microsoft Test - http://tester.poleyland.com/
    Thursday, January 13, 2011 4:56 PM
  • On 13/01/2011 08:58, Dravid wrote:

    i trying to run my application VS2005 in windows 7.It's error as .The application was unable to start correctly (0xc0150002).Click OK to close the application.

    Can you please suggest me how to resolve the problem as soon as possible.

    Try to statically link with CRT (and ATL/MFC if your app is using them, too).

    Giovanni

    Thursday, January 13, 2011 7:33 PM
  • I've encountered the same problem today whilst building an application with Visual Studio 2005. The app links to a couple of 3rd party DLLs which were (possibly) built with an older or newer version than mine. Would that mean that I too need to install the VS2005 redistribution pack?

    [Edit...] or should I maybe update to the latest service pack for VS2005??

    Wednesday, January 19, 2011 3:42 PM
  • Hello,

    yes, you may try re-installing the package and give us your result.

    Try also to statically link libraries which can be statically link(CRT, MFC/ATL or 3rd party library) as suggested Giovanni.


    Nicolò Zilio
    Personal blog: http://nicolozilio.wordpress.com/(With technical articles)
    Personal Web site: http://nicolozilio.altervista.org/
    Wednesday, January 19, 2011 3:47 PM
  • The app links to a couple of 3rd party DLLs which were (possibly) built with an older or newer version than mine. 

    DLL's that are produced by third parties are often dependent on a particular version of the compiler. This is often stipulated in the associated documentation. It really depends on the sophistication of the third party, since it is possible to produce DLL's that are independent of the compiler version. The best bet is to contact the 3rd party first and find out if the DLL is compatible with VS2005.
    Wednesday, January 19, 2011 5:41 PM
  • On 19/01/2011 16:42, johne53 wrote:

    I've encountered the same problem today whilst building an application with Visual Studio 2005. The app links to a couple of 3rd party DLLs which were (possibly) built with an older or newer version than mine. Would that mean that I too need to install the VS2005 redistribution pack?

    If the DLL's export a pure C interface (like several Win32 API's), or a COM interface (like some Win32 API's), then you can use them from a compiler different from the one used to build those DLL's.

    But, in general, when using DLL's exporting C++ interfaces, you should pay attention to use them with code compiled with the same compiler and the same compiler settings (it's a strong constraint).

    As Brian wisely recommended, you may want to contact the DLL vendor for more information.
     > [Edit...] or should I maybe update to the latest service pack for VS2005??

    You may give it a try...

    Giovanni

    Wednesday, January 19, 2011 7:49 PM
  • hi

    see the below link, it is very useful for integrating visual studio 2010 and openCV-2.3 versions in windows7 64-bit environment.

    http://siddhantahuja.wordpress.com/2011/07/18/getting-started-with-opencv-2-3-in-microsoft-visual-studio-2010-in-windows-7-64-bit/


    • Edited by ign407 Thursday, March 1, 2012 7:19 AM
    Thursday, March 1, 2012 7:18 AM