Hello list,

This pm library compile seems to work, the first line initializes with error 0, and I get a device count of 4, but no matter what I do - and after reconfiguring my inputs with pmDefaults, testing all is OK, etc, I always get 0 for devOutId (possibly OK) and a null pointer (and subsequent segfault) for outStream. Note that pm used to work in my program, and this is called very early in the program initialization. Does anyone know if sqlite conflicts with portmidi? Or is there another reason I might not be getting a handle made? This is a new compile done in g++ on minGW/win7 64/qt 4.8. I think the problem is buried deep in my code somewhere but maybe the compile is no good, or there is some trick I'm missing. Thanks. -Don

///INITMIDIOUT

    int  pmErrInit  =  Pm_Initialize();

    int  devCount  =   Pm_CountDevices();

    int  devOutId  =   Pm_GetDefaultOutputDeviceID();

    const  PmDeviceInfo  *  devOutInfo  =  Pm_GetDeviceInfo(devOutId);

   PortMidiStream**  outStream  =  new  PortMidiStream*;

    int  hasErr  =  Pm_HasHostError(outStream); // SEGFAULT


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

Reply via email to