2012/8/24 brian :
> Buttons[1]^ := FirstButton;
It is crashing because here you are dereferencing an uninitialized
pointer Button[1] does not contain any reasonable value at this
moment, Button[1]^ therefore points to some random location and
Buton[1]^:= is trying to write something to that rand
On Fri, Aug 24, 2012 at 10:22 PM, brian wrote:
> Type
> TBtnPtr = ^TButton;
> TBtnArray = Array [1..36] of TBtnPtr;
>
TButton is a reference type. Reference is basically a pointer which does
not require the pointer syntax.
You are really defining a pointer to pointer, a useless indirection the
On Fri, Aug 24, 2012 at 10:22 PM, brian wrote:
> Hi all,
>
> I'm trying to port a Delphi program to Lazarus, although I'm redoing the
> interface from scratch.
>
> Without getting into to much detail about what the program does, it needs
> an array of 72 buttons on the main screen, these buttons
Hi all,
I'm trying to port a Delphi program to Lazarus, although I'm redoing
the interface from scratch.
Without getting into to much detail about what the program does, it
needs an array of 72 buttons on the main screen, these buttons have
their captions changed and are variously enabled an