[fxruby-users] release memory

Lyle Johnson lyle at knology.net
Mon Feb 12 11:25:37 EST 2007


On Feb 12, 2007, at 3:11 AM, Björn Bergqvist wrote:

> if I have created some objects in a FXGLViewer and want to remove them
> and free that memory. How do I do?

I will assume for the moment that all of the objects in the  
GLViewer's scene are in a GLGroup (as they are in the example  
program). In that case, just remove the object(s) from the group, e.g.

	glviewer.scene.remove(obj)

and then call update on the glviewer to get it to redraw itself:

	glviewer.update

Hope this helps,

Lyle




More information about the fxruby-users mailing list