Visual C++ 2005 upgrade problems

G

Guest

Hi,
Currently, I am working on converting C++ applications written with C++ 6.0
to C++ 2005. I can compile the applications fine after slight modifications
but when I run applications, I am getting two different types of errors.

1 - The application failed to initialize properly (0xc0000005). Click OK to
terminate the application

2 - R6031. Attempt to initialize the CRT more than once. This indicates a
bug in your application

Some facts:

- Neither of the errors are due to missing dependencies. (I can verify this
by using dependencywalker)
- All the apps that crash are unmanaged dll's, and are not compiled with the
CLR option.
- Their C++ 6.0 versions run just fine.
-All underlying dll's have been compiled with VS 2005 as well, without the
CLR option

Any ideas will be appreciated.
 
B

Bruno van Dooren [MVP VC++]

Currently, I am working on converting C++ applications written with C++
6.0
to C++ 2005. I can compile the applications fine after slight
modifications
but when I run applications, I am getting two different types of errors.

1 - The application failed to initialize properly (0xc0000005). Click OK
to
terminate the application

2 - R6031. Attempt to initialize the CRT more than once. This indicates a
bug in your application

There is a huge difference between those 2 compilers (almost 10 years) so it
is perfectly possible that code worked perfectly in VC6, but no longer in
VC2005. At least, this can happen if the original program uses behavior that
is undefined at some point.
The best thing to do is to step through your program and see where the crash
happens.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top