Index:
[thread]
[date]
[subject]
[author]
From: Marcus Sundberg <mackan@stacken.kth.se>
To : p.guehring@poboxes.com
Date: Thu, 19 Aug 1999 21:33:20 +0000
Re: palemu + DirectBuffer = Segfault
Philipp Gühring wrote:
>
> Hi!
>
> printf("GGI_DISPLAY=%s\n",getenv("GGI_DISPLAY"));
> if((vis=ggiOpen(getenv("GGI_DISPLAY")))==NULL) return 0;
> if(ggiSetGraphMode(vis,320,200,320,200,GT_8BIT)) return 0;
> printf("Grafikmodus ok.\n");
> if((db=ggiDBGetBuffer(vis,0))==NULL) return 0;
> printf("Direct Buffer ok.\n");
> GfxScreen=(S1*)db->write;
>
> The output is:
>
> GGI_DISPLAY=display-palemu
> Grafikmodus ok.
> Speicherzugriffsfehler (german for Segfault)
>
> What to do?
I can't reproduce this, and the palemu target hasn't changed since
before 2.0beta2. What version do you have of relevant libs?
Also note that the code ggiOpen(getenv("GGI_DISPLAY")) is broken, use
ggiOpen(NULL) instead.
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan/
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: mackan@stacken.kth.se
Index:
[thread]
[date]
[subject]
[author]