Solved

when run setup Unhandled exception :  Access violation writing location

Posted on 2010-09-06
2
964 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now