On Thu, 2009-07-02 at 22:33 +0200, Bernd Roesch wrote:
> Hello 
> 
> i get this error only when want show the BBC page(link on startsite)
> 
> after that come a out of memory message.To find the correct line i do this
> call into debugger.

If you have a debugger, presumably you can single-step imagemap_extract
to find out what fails?

> const char *messages_get(const char *key)
> {
>     if (strcmp(key,"NoMemory")==0){STOP}
>     return messages_get_ctx(key, messages_hash);
> }
> 
> so i am sure its the right place.memory is enough here.

There may be sufficient free memory, but if the allocation calls fail,
NetSurf doesn't know this. The imagemap functions fail *only* when
malloc/calloc/realloc return NULL.

> the build have no MNG support.Is this maybe a problem ?

Disabling support for specific content types won't affect this.

I've tidied up the imagemap code and stopped it trying to call
calloc(0, ...), which was probably your problem.


J.


Reply via email to