On Thu, 14 Feb 2008 14:48:34 +0100
Alban Bedel <[EMAIL PROTECTED]> wrote:
> On Thu, 14 Feb 2008 11:17:19 +0100
> Frederik <[EMAIL PROTECTED]> wrote:
>
> > I encountered some other problem:
> >
> > If I do really a lot of talking the game does crash under ScummVM.
> >
> > "ERROR (...): Out of array pointers, 100 max".
> >
> > I tried to reprocuce the error, and it showed up again after doing
> > the "Stand aside, I need to pass!" dialogue with Carol about 14
> > times. Is there a possibility of creating some sort of "memory leak"
> > with SCUMM scripts?
>
> Yes, there is :( The script must deallocate themself the array they
> create. I suspect the bug is in the code to handle the dialogs. I'll
> look at it, thanks a lot for the report.
The bug was a bit more subtle. undim() was called on some array members,
but this function only work on plain variables. The compiler is
currently generating bad code in this case I suspect. Most probably it
deallocate the array itself instead of the one referenced by the member.
Albeu
_______________________________________________
ScummC-general mailing list
[email protected]
https://mail.gna.org/listinfo/scummc-general