[me] >Ah, an interesting little piece of code. There seems to be a memory >leak in startMidiLoop() -- the pfds are never free()'d. My bad. All this c++ made me forget what alloca() does. Sorry. Cheers, Tim