Solved

when run setup Unhandled exception :  Access violation writing location

Posted on 2010-09-06
2
984 Views
Last Modified: 2012-06-27
Hi,
  I am having MFC application. I created the setup for this application. I run the application without creating setup its working fine and show the output. But i create the setup and install in my system,finally run it setup file it gives exception. I attached image file what exception i get. So i check through Attach to process and give the breakpoint. I got an exception inside the appliction that is,
"Unhandled exception at 0x7c9116f4 in RTAPIPersonnelAPIComboApp.exe: 0xC0000005:
Access violation writing location 0x00d455e2"
Hope your's reply.

Thanks

setup-error.JPG
0
Comment
Question by:Rajkumar Gs
2 Comments
 
LVL 1

Accepted Solution

by:
XMarshall10 earned 500 total points
ID: 33615655
First of all, check for these points:

1. Have you created a released version of your binary? Because if you created setup with the debug version of your application exe, after installation your application will connect to released version of the MFC run time dll's. Thease may create problems.

2. While creating your installer package, have you included all the MFC run time dll's?

3. Are you running your setup in the same OS Version that you have developed your code? In some rare cases, code binary developed in Win2k, WinXP for instance may face problems in Vista.

Your error message probably suggests that your code is not able to connect to a proper run time binary.
Suggest you start from the beginning again, build and create setup.

-XM
0
 
LVL 23

Author Closing Comment

by:Rajkumar Gs
ID: 33625051
yes i got the solution. Thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question