?
Solved

when run setup Unhandled exception :  Access violation writing location

Posted on 2010-09-06
2
Medium Priority
?
1,020 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
XMarshall10 earned 2000 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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

649 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