Solved

Function has no return address

Posted on 1997-08-20
1
415 Views
Last Modified: 2013-12-03
A member function "recalculate()" of my class "Calc" CANNOT RETURN to where it was called (another function within Calc called recalculate()).  During a normal execution, I get the message, "This program has performed an illegal operation and will be shut down."  During a step by step trace, I find there is an Access Violation at the end of recalculate(), and "the current function has no return address".  What is going on?

NOTE: At the beginning of a "run to breakpoint" the computer tells me of many "no matching symbolic information found" problems with .DLL files.  Also, there is "no shared menu for document template #130."

0
Comment
Question by:Mark Ebden
1 Comment
 
LVL 3

Accepted Solution

by:
vinniew earned 50 total points
ID: 1404525
You don't have debug information in your .dll files.  If you are using VC++, you need to rebuild each project using debug information (and browse, too, if you like) and then try again.  I find that it sometimes helps to rename the release versions to prevent the files from being confused too.

Another thing- if it cannot return to where it was called, it sounds like you have a syntax error, but you'd have to post the code for me to be sure.  Make sure that the calc:: is in front of all the functions.  Otherwise, the name mangling will prevent the code from knowing where to go.

No matter what, post more code and I can tell for sure.

V

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

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

16 Experts available now in Live!

Get 1:1 Help Now