BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

'Inaccessible value' when debugging DesignEditors.pas .

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OpenToolsAPI
View previous topic :: View next topic  
Author Message
eric.moutie
Guest





PostPosted: Thu Mar 29, 2007 1:47 pm    Post subject: 'Inaccessible value' when debugging DesignEditors.pas . Reply with quote



Hello,

I meet the following problem : i'm trying to build a custom property
editor with [paSubProperties], with D7.
The important part of the code source is :

" TAComponentProperty.GetProperties;
var Selections: IdesignerSelections;
Begin
.../...
Selections:= TdesignerSelections.Create;
For i:= 0 To Components.Count-1 do Begin
Selections.Add(TASubProperty(Components,Objects[i]));
GetComponentsProperties(Selections, [tkFloat], Designer, Proc);
.../...
End; "

When "GetComponentProperties" is called, the execution point goes in the
unit "DesignEditors.pas" to trace "procedure
GetComponentProperties(Const Components: IdesignerSelections .../...".
When I want to inspect, evaluate, or modify a variable in that
procedure, the only result is "inaccessible value", even when I remove
the optimization.
To try to resolve this limitation, I've tempted this solution:
As "DesignIde.dpk" is not supplied, I've removed it from my Design-time
package, so that I can add its units directly in the "Contains" clause
of the package, because I want to rebuild all the units. But, it's not
possible because the "ComponentDesigner.pas" is missing. So, I can't
really debug "DesignEditors.pas".

Has someone else encountered this problem ?
Thank you for yours solutions.
Back to top
Schalk Versteeg
Guest





PostPosted: Thu Mar 29, 2007 7:37 pm    Post subject: Re: 'Inaccessible value' when debugging DesignEditors.pas . Reply with quote



Hi Eric
If you need add the designide.dcp to your requires section your problem most
probably will be solved.
It is situated in the delphiXX\Lib directory

HOWTO:
Project/Add to project
Choose the requires tab


"eric.moutie" <eric.moutie (AT) iFrance (DOT) com> wrote in message
news:460b7d1d$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hello,

I meet the following problem : i'm trying to build a custom property
editor with [paSubProperties], with D7.
The important part of the code source is :

" TAComponentProperty.GetProperties;
var Selections: IdesignerSelections;
Begin
.../...
Selections:= TdesignerSelections.Create;
For i:= 0 To Components.Count-1 do Begin
Selections.Add(TASubProperty(Components,Objects[i]));
GetComponentsProperties(Selections, [tkFloat], Designer, Proc);
.../...
End; "

When "GetComponentProperties" is called, the execution point goes in the
unit "DesignEditors.pas" to trace "procedure GetComponentProperties(Const
Components: IdesignerSelections .../...".
When I want to inspect, evaluate, or modify a variable in that procedure,
the only result is "inaccessible value", even when I remove the
optimization.
To try to resolve this limitation, I've tempted this solution:
As "DesignIde.dpk" is not supplied, I've removed it from my Design-time
package, so that I can add its units directly in the "Contains" clause of
the package, because I want to rebuild all the units. But, it's not
possible because the "ComponentDesigner.pas" is missing. So, I can't
really debug "DesignEditors.pas".

Has someone else encountered this problem ?
Thank you for yours solutions.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OpenToolsAPI All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.