Re: [info-performer] segm violation on node deletion

Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 12/03/2003 12:36:18


Hello Jorrit !

Performer collects deletion operations and executes them in an asynchronous
process (DBASE). Calling pfFrame sends the DBASE process for a new frame (if it
is idle).

Deleting objects in a separate (asynchronous) process helps avoiding frame
glitches and doesn't waste any cycles in time-critical processes (APP,CULL,
DRAW).

If you don't fork off a DBASE process, the deletions happen in the APP process
when you call pfFrame.

All in all, you have to call pfFrame in order to delete nodes completely.

-yair

> Thank you for that, we indeed missed that part of the manual pages...
>
> There is, however, one more problem we stumble upon:
>
> if we do the following in the main loop:
>
>
> for (int i=0; i<100000; i++)
> {
> pfDCS* dcs = new pfDCS;
> int rv = dcs->checkDelete()
> //pfFrame()
> }
>
> dcs does not actually get deleted, and memory quickly fills up.
> If we uncomment the pfFrame(), the dcs gets deleted properly.
> Note that the same behaviour can be observed when using the
> C function pfDelete on the dcs.
>
> Is there something we are missing?
>
> thanks,
> Jorrit Adriaanse
>
>
>
>
> On Mon, 1 Dec 2003 14:02:35 -0800 (PST)
> "Yair Kurzion" <yair++at++polygon.engr.sgi.com> wrote:
>
> >
> >
> > Bram,
> >
> >
> > Try pfDelete instead of delete.
> >
> >
> > -yair
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
> I/ITSEC 2003 Friends of Performer Meeting:
> Wednesday December 03, 6:30-8:30pm, Peabody Hotel, Florida I Ballroom
> -----------------------------------------------------------------------
>

-- 
\_________  \_____  \__    \__  \_____        
\_________  \_____   \__   \__  \_____         Yair Kurzion
       \__     \__   \____\__      \__         yair++at++sgi.com
       \__          \__  \__                  (650) 933-6502
       \__          \__   \__          
       \__          \__    \__             


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Dec 03 2003 - 12:36:33 PST