From: Per Fahlberg (Per.Fahlberg++at++saab.se)
Date: 08/25/2000 02:31:48
Hi all!
I'm developing a program for paging terrain tiles in Performer and I
have a problem.
When loading the terrain I use pfdLoadFile and the files are in .pfb
format. When deleting the nodes created by pfdLoadFile I use
pfBufferRemoveChild and pfAsyncDelete on the nodes. All loading and
deleteing is done in dbase. I have understood from other entries in the
mailing list that I have to delete the textures explicitly in DRAW. I do
that by calling deleteGLHandle on the textures that i got from calling
pfuMakeTexList on the nodes. This dosen't seem to free up any memory for
me (checked with amallinfo). I also made a call to pfDelete on the
texture, but this dosen't work because the refernce count of the texture
is 3. If I used pfFree instead it freed the memory but generated a
warning message about the reference count.
What is referencing the texture?
Is there something I've forgott to delete or something I have missed?
Another thing I'm having problem with is that if I call find in dbase
this makes my program crash. Same thing happens when I tried to pfPrint
with decend set. Is it not possible to call these functions from within
dbase?
/Per Fahlberg
This archive was generated by hypermail 2b29 : Fri Aug 25 2000 - 02:32:00 PDT