< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [sipxtapi-dev] Deployed sipXtapi Windows app fails with 0xc0150002


At 8/27/2008 03:18 AM, stipus wrote:
You need to install the VS2005 SP1 redistribution package on the deployment
computer.
You can easily download this from the MS download site.

This installs new versions of the side by side MSVC runtime libs.

Thanks, stipus, I knew this was a possible solution, but in my opinion it's the least desirable one. :-) I've avoided using Microsoft development products for the last 10 years, largely because of such sad behavior. Apparently the VS2005 SP1 redistribution package installer does not work on all machines because it depends on a newer version of MS Installer. I found much griping and teeth gnashing about the situation on various forums.

It might be possible to include the C runtime in the sipXtapi DLL, but I couldn't figure it out. I think the options for statically linking the C runtime assume the runtime will be linked into the application. Since I'm using Delphi, that's not an option.

I found what appears to be a workaround. By installing the contents of this folder:
  C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT
into my application folder along with the sipXtapi DLLs, my app runs in a relatively clean Windows XP VM. The manifest IS required.

This is probably of interest to anyone using sipXtapi with an application NOT built using Visual Studio 2005.


Finest regards,
Bill Root



-----Message d'origine-----
De : sipxtapi-dev-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:sipxtapi-dev-bounces@xxxxxxxxxxxxxxxxxxx] De la part de Bill Root
Envoyé : mercredi 27 août 2008 01:43
À : sipxtapi-dev@xxxxxxxxxxxxxxxxxxx
Objet : [sipxtapi-dev] Deployed sipXtapi Windows app fails with 0xc0150002


My application using sipXtapi.dll under Windows fails with the
following error message in a relatively clean Windows XP VM:
   "The application failed to initialize properly
(0xc0150002).  Click on OK to terminate the application."

A short Google search suggests the app wants a Visual C++ 2005 SP1
Redistributable Package (x86).  I am using Visual C++ 2005 to build
sipXtapi.dll.  Is there a build switch, setting or option to prevent
sipXtapi from requiring more Microsoft crud?  I never used Visual C++
2005 before my foray into sipXtapi so I'm really hoping I overlooked
something.