Hi all,

Several hours were spent on google learning that this problem has supposedly been solved in previous versions of portmidi, but on my windows 7 64 bit system the following code hangs on exit even though I call Pm_Close() properly (I think.) Any help is appreciated.


voidAccMidi::initMidiOut()

{

    ///  INIT  MIDI  OUT - works fine, outStream doublePointer is stored 
properly

    int  pmErr  =   Pm_Initialize();

    int  devOutId  =   Pm_GetDefaultOutputDeviceID();

    outStream  =  new  PortMidiStream*;

    Pt_Start(1,  0,  0);  //  porttime  timer

    int  pErr3  =  Pm_OpenOutput(outStream,  devOutId,  NULL,  0,  NULL,  
tmInfoOut,  1  );

}

void  AccMidi::closeMidi()
{

    Pt_Stop();
    delete  tmInfoOut;
    PmError  err  =  Pm_Close(outStream);  // HANG HERE, WITH GOOD 
DOUBLEPOINTER REFERENCE
}




_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to