Thanks Silvio, I'm not having a problem a problem with code running. I'm not able to Inspect the contents of VStringArray while debugging via GDB in Ubuntu.
Can you inspect the variable VStringArray? How about VStringArray[0]? I can not. This is a fresh build of FPC and Lazarus from TRUNK and a BRAND new install of Ubuntu 9.04. On Sun, Aug 2, 2009 at 5:25 PM, Silvio Clecio<[email protected]> wrote: > 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: [email protected] > E-mail, Y! Messenger: [email protected] > BlogSite: http://silvioprog.blogspot.com/ > BlogSpot: http://silvioclecio.blogspot.com/ > VirtualDriver: http://silvioprog.4shared.com/ > °oO| Seja livre, use Linux! |Oo° > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
