Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
Debugger
Evaluator
C++
Delphi
Pascal
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/Debugger/Evaluator/C++
[ Add a report in this area ]
Report #:
5821
Status:
Closed
Property with a const accessor method cannot be evaluated by debugger
Project:
C++Builder
Build #:
10.166
Version:
6.0
Submitted By:
Registered User
Report Type:
Suggestion / Enhancement Request
Date Reported:
9/3/2003 3:41:30 AM
Severity:
Commonly encountered problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All versions
Internal Tracking #:
219644
Resolution:
Retest
(Resolution Comments)
Resolved in Build:
:
7.0.4.453
Duplicate of:
None
Voting and Rating
Overall Rating:
(4 Total Ratings)
3.50 out of 5
Total Votes:
None
Description
Most properties can be evaluated by the debugger!
If however a property has an accessor method which is a const member function the debugger is unfortunately unable to locate the method and complains that it cannot find the method.
A similar issue occurs if the property is not referenced (hence accessor method not referenced) because the code is physically not present as it was discarded by smart linking.
However the debugger cannot find the accessor method in the case of a const member function because it simply doesn't look for it.
It would presumably be quite simple for the debugger to look for both const and non-const property accessor methods. This clearly would not be necessary for a mutator method as it is rather unlikely (& illogical) for such a method to be const.
Clearly a class with a const accessor method cannot be shared with Delphi code (& perhaps cannot be __published) but that's a completely separate issue.
Example
-----------
class Tfoo
{
public:
__property int Bar = {read=GetBar};
protected:
int GetBar() const;
};
In the example above GetBar() is a const member function and therefore Bar cannot be evaluated by the debugger.
Steps to Reproduce:
The steps are as described in the example!
This is a feature request not quite a problem report.
If you don't understand my report please post a comment and I will attempt to make it clearer.
Workarounds
None
Attachment
None
Comments
Registered User at 9/3/2003 3:42:53 AM
-
Sorry about the steps bit. QS went a bit mental when I pressed Ctrl-Tab!
Clayton Arends at 9/4/2003 9:04:54 AM
-
Then edit the steps.
Registered User at 9/5/2003 7:30:23 AM
-
Cheers,
I hadn't noticed that it was possible to do this. I'm still getting used to using QS.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us