pfOpenPWin/pfClosePWin problems

New Message Reply Date view Thread view Subject view Author view

From: Bernie Kirby (bernie++at++ecr.mu.oz.au)
Date: 05/09/2000 18:41:16


G'day,
        I have an application that Creates and Opens an ancillary pfPipeWindow.
The user can 'close' this pfPipeWindow via the keyboard. However, usually
when pfClosePWin is called on this pfPipeWindow, there is a resulting
message thus:

PF Warning/Usage: pfMemory::unrefGetRef() Attempt to unreference memory with 0 reference count.
PF Warning/Usage: pfMemory::unrefGetRef() Attempt to unreference memory with 0 reference count.
PF Warning/Usage: pfMemory::unrefGetRef() Attempt to unreference memory with 0 reference count.

... and there appears to be some futher memory corruption.

The application is far to big to post, however, the 'multiwin' example
also shows this problem after the addition of some arbitrary calls to
call pfClosePWin/pfOpenPWin to close/reopen one of the windows.

.... ie in the main loop...

        int tcount = 1;
        ....

        
        if (tcount > 100) {
                /* Do we have to remove the Channel ? */
                /*pfRemoveChan(pwin[0], chan[0]);*/
                printf("pfClosePWin pre\n");
                pfClosePWin(pwin[0]);
                printf("pfClosePWin post\n");
                tcount = 0;
        } else {
                if (tcount == 0) {
                        /*pfAddChan(pwin[0], chan[0]);*/
                        /*pfOpenPWin(pwin[0]);*/
                        pfConfigPWin(pwin[0]);
                }
                tcount++;
        }

        /* Initiate cull/draw for this frame. */
        pfFrame();

.....

Anyone got any ideas? I'd really like to be able to open and close
this pfPipeWindow.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue May 09 2000 - 18:41:45 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.