> It's needs to be updated to something like this, > > if (!pgm_supported ()) > rc = pgm_init (&pgm_error); That won't with for shutdown. First shutdown would deallocate everything. What we need is reference count. I'll do that in 0MQ - unless you want to implement this in OpenPGM. Martin