To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 6601
6600  |  6602
Subject: 
Re: ldglite 0.9.4
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 3 Dec 2001 14:48:35 GMT
Viewed: 
888 times
  
In lugnet.cad.dev, Jacob Sparre Andersen writes:
Hmmm... I tried in Bash, and suddenly it worked.

Tried again in Tcsh, and it didn't work. Ran `limit
stacksize unlimited` and tried again. Then it worked.
Apparently you allocate some data on the stack without
checking if the allocation succeeds or not.

Yuck.  I'm not allocating anything really HUGE on the stack.
Plus I can't think of a good way to check in C if a stack
allocation fails.

On the other hand, the offscreen image buffer IS huge, but
that's allocated on the heap, and I do check to see if the
allocation is successful.

I guess I'll have to login sometime tonight and try to
debug it from tcsh to see what's going on.

Don



Message has 1 Reply:
  Re: ldglite 0.9.4
 
(...) It looks like the OSMesa driver doesn't like it when you call glutGet(GLUT_SCREEN_WIDTH). I would have thought that was a reasonable way to get the maximimum bitmap dimensions, but I guess the Mesa folks decided a new extension was needed (...) (23 years ago, 6-Dec-01, to lugnet.cad.dev)

Message is in Reply To:
  Re: ldglite 0.9.4
 
(...) Hmmm... I tried in Bash, and suddenly it worked. Tried again in Tcsh, and it didn't work. Ran `limit stacksize unlimited` and tried again. Then it worked. Apparently you allocate some data on the stack without checking if the allocation (...) (23 years ago, 3-Dec-01, to lugnet.cad.dev)

13 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR