 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
eric.moutie Guest
|
Posted: Thu Mar 29, 2007 1:47 pm Post subject: 'Inaccessible value' when debugging DesignEditors.pas . |
|
|
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
|
Posted: Thu Mar 29, 2007 7:37 pm Post subject: Re: 'Inaccessible value' when debugging DesignEditors.pas . |
|
|
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 |
|
 |
|
|
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
|
|