Index: [thread] [date] [subject] [author]
  From: becka@rz.uni-duesseldorf.de
  To  : ggi-develop@eskimo.com
  Date: Sun, 18 Apr 1999 21:40:52 +0200 (MEST)

Re: GGI help

Hi !

> im trying to write a simple jpeg viewer in ggi, but when ever i call
> ggiSetColorfullPalette(vis); .. it returns with -20.. 

This is very strange ... -20 means GGI_ENOMEM, what is very strange, as
it is probably issued at 

int ggiSetColorfulPalette(ggi_visual *vis)
{
        int err;
        int numcols = 1 << GT_DEPTH(LIBGGI_GT(vis));

        ggi_color *pal = malloc(sizeof(ggi_color) * numcols);

        if (pal == NULL) {
                return GGI_ENOMEM;
        }


in ggi/gc.c . This is seemingly the only place, where this error code could
be issued. That sounds like malloc-heap corruption before the call.

CU, ANdy

-- 
= Andreas Beck                    |  Email :  <andreas.beck@ggi-project.org> =

Index: [thread] [date] [subject] [author]