[Lazarus] Lazarus does not compile project - settings tweak required

Graeme Geldenhuys graemeg at opensoft.homeip.net
Mon Aug 3 11:06:13 CEST 2009


Em 31/7/2009 21:17, Andrew Brunner escreveu:
> Hi All.  I have a data type of TStringArray=Array of String...
>
> Under debugger (GDB Linux) I can't access any of the elements.
>
> Is there a compiler option to enable information during debugging and
> or watching?
>
> Presently, when Inspecting or Viewing I get an error "Cannot perform
> pointer math on incomplete type TSTRINGARRAY..."
>
> Any ideas?

I not saw errors with the implementation below:

-------
   TStringArray = array of string;

implementation

{ TMainForm }

procedure TMainForm.TestButtonClick(Sender: TObject);
{$WRITEABLECONST ON}
const
   CStringArrayLength: Integer = 20;
{$WRITEABLECONST OFF}
var
   VStringArray: TStringArray;
begin
   SetLength(VStringArray, CStringArrayLength);
   VStringArray[0] := 'Test';
   ShowMessage(VStringArray[0]); // Show Test
end;
-------
-- 
[]'s, Silvio Clécio
---
Linux User: #481900
Gmail, GTalk: silvioprog at gmail.com
E-mail, Y! Messenger: silvioprog at yahoo.com.br
BlogSite: http://silvioprog.blogspot.com/
BlogSpot: http://silvioclecio.blogspot.com/
VirtualDriver: http://silvioprog.4shared.com/
°oO| Seja livre, use Linux! |Oo°




More information about the Lazarus mailing list