Solved

when run setup Unhandled exception :  Access violation writing location

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lambda for random numbers problem 7 106
Getting IP address 8 71
How to programmatically differentiate between C and Java 10 188
gdb doesn't stop on breakpoint 2 48
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

911 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

24 Experts available now in Live!

Get 1:1 Help Now