pfAttachDPool failure

New Message Reply Date view Thread view Subject view Author view

Dave Sapone (dave++at++degas.autometric.com)
Thu, 6 Jul 1995 20:40:36 -0400


My performer application is supported by many sub-applications which perform
various tasks. They use pfDataPools to share data. Some sub-apps can
attach to an existing dataPool and some cannot.

Each program calls pfInit() prior to doing dataPool stuff which is the same
exact function call. basically (the usual):

    init ( )
    {
        if ( ! dataPool )
        {
            if ( ! ( dataPool = pfAttachDPool ( name ) ) )
            {
                if ( ! ( dataPool = pfNewDPool ( size, name ) ) )
                {
                    /* error */
                }
                else
                {
                    /* allocate data region */
                    ptr = (void *) pfDPoolAlloc ( dataPool, size, ID );
                }
            }
            else
            {
                ptr = (void *) pfDPoolFind ( dataPool, ID );
            }
        }
    }

No one calls pfReleaseDPool().

The first app to call the init() function creates the dataPool. Some apps can
attach to it and some fail at pfAttachDPool().

Does anyone have a clue ?

Thanks loads.

-- 
-----------------------------------------------------------------------------
                      dave sapone // dave++at++autometric.com
-----------------------------------------------------------------------------

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:39 PDT

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