Hi,

On Sun, 14 Jan 2001, Lars Skovlund wrote:

> > - Memory leak! We're loosing memory, apparently when moving from one scene
> > to another. Lots of it, too (maybe it's just pic_buffer_size != 0 being
> > interpreted as "infinite", but I don't think so).
> 
> In the heap, too. Hoyle (which is SCI0) sometimes dies with memory
> problems and leave me in the debugger. When it doesn't (this seems to be
> random), it still pseudo-hangs (though the main loop is still running), as
> always (I still need to track that down).

You can use the 'objs' command to get a list of all objects on the
heap. Comparing those with the ones Sierra has on their heap at that time
might be a valuable hint.

(Note it's possible that lists or list nodes are being dropped- we still
have the occasional attempted DisposeList(n) where n is not a list).

> I also get a segfault on startup if I set the interpreter version in the
> config file:

[...]

> 169             int top = sci_max_resource_nr[version] + 1;
> 
> It seems that the above line should use the SCI_VERSION_* macros to get it
> right.

That would be one way to fix it, but this version number is intended to be
used only by the resource decoder, so I wanted to pass the global
sci_version variable to it. I think I fixed it in main.c; double-check
that, please!

llap,
 Christoph


Reply via email to