[Gambas-user] Gmine Is Working :-)!
Benoit Minisini
gambas at ...1...
Sat Mar 13 17:24:49 CET 2004
On Saturday 13 March 2004 16:17, Benoit Minisini wrote:
> On Saturday 13 March 2004 15:05, Benoit Minisini wrote:
> > On Thursday 11 March 2004 20:11, Pozzo wrote:
> > > Here It is! The first Gmine (a simple Minesweeper) version
> > > is working very fine and you can also decide with
> > > how many mines you want to play.
> > > The program is not finished infact you can't choose the
> > > cells number.
> > >
> > > There's someone who can tell me some way to do this?
> > >
> > > Thanks
> > >
> > >
> > > To Benoît
> > > I've found some problems: in previous versions I used an array named
> > > HarryC[8,16] but I've found a way to do the same function in another
> > > way and
> > > faster so I tried to delete it but when I tried to execute the program
> > > it crashed with a 11# signal.I realy don't understand why this happened
> > > because that array isn't use in the all the code. Thank you
> > >
> > >
> > > Maurizio
> >
> > Could you send me the project that crashes ?
> >
> > Regards,
>
> Sorry. THIS is the project that crashes!
OK. I fixed this stupid bug!
When you created arrays of boolean, short or bytes, they were accessed by the
interpreter as if they were integer arrays. So filling them erased the memory
allocated just after the array.
This is the reason why your program crashed when you remove the second array.
Its presence prenvented the following variables to be filled with rubbish.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list