?
Solved

when run setup Unhandled exception :  Access violation writing location

Posted on 2010-09-06
2
Medium Priority
?
1,013 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

765 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