| Author |
Message |
Gerg
Guest
|
Posted:
Tue Apr 05, 2005 7:19 pm Post subject:
Program initialization failure when running CPI-C app using |
|
|
Hello,
I've built an application using C++ Visual Studio .NET 2003 that uses the
CPI-C library routines that come with HIS 2004 Client.
I've got two versions of the app; one that installs as a Windows Service and
another that just runs as an application to help with debugging.
I had a problem because when I ran the app as a Service, it would not
connect with the HIS Server but when I ran the app from the console, it
worked fine.
Although the compiled executable was built with HIS 2004, it was deployed on
a machine with HIS 2000. After reading around the www, it seems that there
are a few problems running services like this so I asked my client to upgrade
to HIS 2004 with the hope that it would fix my issue and remove any
cross-version issues.
Sadly, the upgrade has made things worse! Neither my app nor my service will
even start now. I get a popup that says:
"The application failed to initialize properly (0xc0000005). Click on OK to
terminate the application."
At the point that the message gets raised, I don't believe any of my code
has even been run. My guess is that something is going wrong when it loads
DLLs etc.
I don't get this problem in my Dev Environment (W2K Prof), it only appears
on the W2K3 server.
Any thoughts on this?
Should I regress the client software back to 2000 and try to solve the
running-as-a-service issues?
Any ideas about how I can get more info from the program initialization
failure? Or what might be the cause?
Any help much appreciated. |
|
| Back to top |
|
 |
Neil Pike
Guest
|
Posted:
Mon Apr 18, 2005 1:29 pm Post subject:
Re: Program initialization failure when running CPI-C app us |
|
|
Gerg,
I'd have thought just number 2 would have fixed it. Was that not the case?
| Quote: | We did the following to fix the issue:
1. Regressed the HIS Client to HIS 2000.
2. Ran SNABASE as a service.
3. Spent an age figuring out which user credentials were being used at any
given time during the service processing so that the call eventually
succeeded.
|
Neil Pike. Protech Computing Ltd |
|
| Back to top |
|
 |
Gerg
Guest
|
Posted:
Mon Apr 18, 2005 3:01 pm Post subject:
Re: Program initialization failure when running CPI-C app us |
|
|
The problem was that because my application was installed as a Windows
Service, it also had its own credentials that needed to be authorised use
SNABase and stuff on the Server.
"Neil Pike" wrote:
| Quote: | Gerg,
I'd have thought just number 2 would have fixed it. Was that not the case?
We did the following to fix the issue:
1. Regressed the HIS Client to HIS 2000.
2. Ran SNABASE as a service.
3. Spent an age figuring out which user credentials were being used at any
given time during the service processing so that the call eventually
succeeded.
Neil Pike. Protech Computing Ltd
|
|
|
| Back to top |
|
 |
Neil Pike
Guest
|
Posted:
Wed Apr 20, 2005 12:13 am Post subject:
Re: Program initialization failure when running CPI-C app us |
|
|
Gerg - it was the "regressed to HIS 2000 client" I was wondering about. Was
that bit necessary too?
| Quote: | The problem was that because my application was installed as a Windows
Service, it also had its own credentials that needed to be authorised use
SNABase and stuff on the Server.
"Neil Pike" wrote:
Gerg,
I'd have thought just number 2 would have fixed it. Was that not the case?
We did the following to fix the issue:
1. Regressed the HIS Client to HIS 2000.
2. Ran SNABASE as a service.
3. Spent an age figuring out which user credentials were being used at any
given time during the service processing so that the call eventually
succeeded.
|
Neil Pike. Protech Computing Ltd |
|
| Back to top |
|
 |
|
|
|
|