[muscle] Fwd: Updating from 3.30 to 5.22

  • From: "Jeremy Friesner" <jeremyf@xxxxxxxxxxxxxx>
  • To: <muscle@xxxxxxxxxxxxx>
  • Date: Wed, 7 Apr 2010 08:00:33 -0700





Begin forwarded message:

From: "Jeremy Friesner" <jeremyf@xxxxxxxxxxxxxx>
Date: April 7, 2010 7:47:30 AM PDT
To: <muscle@xxxxxxxxxxxxx>
Subject: Re: [muscle] Updating from 3.30 to 5.22


Btw, in the example below it looks like m_CssPtr is never deleted. If that is the case, then that would cause the ObjectPool error you reported, since the CompleteSetupSystem destructor is responsible for invoking some cleanup routines, and it won't run if the object is never destroyed.

Jeremy

On Apr 7, 2010, at 4:30 AM, "Raymond Dahlberg" <rd@xxxxxxxxxxx> wrote:
For example a little test server app where this is happening has this in main:

int main( int argc, char** argv )
{
    // Initialize NetBorealis.
    SNbSetupSystem ss;


Where SNbSetupSystem is a singleton with this constructor:

    SNbSetupSystem::SNbSetupSystem( )
        : m_CssPtr( 0 ),
        _serverExitedSignalHandle( 0 )
    {
        if ( m_CssPtr == 0 )
        {
            try {
                m_CssPtr = new CompleteSetupSystem( );
} catch ( bad_alloc& ) { fatalError( "FATAL ERROR: Out of memory (%s:%d).\n", __FILE__, __LINE__ ); }
        }
        _serverExitedSignalHandle = CreateEvent( 0, 0, 0, 0 );
    }

Any hints on this?

Regards,
Raymond

NOTICE: This email may contain confidential information.  Please see 
http://www.meyersound.com/confidential/ for our complete policy.

Other related posts: