Re: [Cs-dev] CsoundReset() and MIDI
Date | 2005-11-02 17:35 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] CsoundReset() and MIDI |
So do you reckon PortMIDI is creating some global variables etc that might linger in the process even after the library module it sits in gets unloaded? Victor > If you run multiple performances in succession by starting > a new process from the command line each time, then the > memory state of the process is not preserved and > everything is cleanly reloaded by the operating system. By > contrast, reusing the same process by calling the > compile/perform/reset cycle repeatedly requires PortMidi > to be reentrant and allowing for multiple calls to > Pm_Initialize() in the same address space without > problems. ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-11-02 17:44 |
From | Istvan Varga |
Subject | Re: [Cs-dev] CsoundReset() and MIDI |
Victor Lazzarini wrote: > So do you reckon PortMIDI is creating some global > variables etc that might linger in the process even after > the library module it sits in gets unloaded? There can be many reasons of this problem. It is possible that the libraries do not actually get unloaded on OS X, or the error is related to how PortMidi uses the API of the system. As I do not have access to a Mac, nor am I familiar with that platform, I can only guess. ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |