[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Freeing Previously Allocated Busses



s.newAllocators is exactly what I was looking for, i.e. something to
simply clean house before another run.

Thanks to everyone who offered solutions.

PAUL


P.S. Something about this would be useful in the Bus helpfile, since it is
not directly a "Bus" object method, and is not something I was able to
find easily, at least with my limited patience/knowledge. Something
directly under the free instance method like: (Note: See s.newAllocators
to free all currently allocated (and unknown) server busses.) would do the
trick, I think.

> you can also reset the allocators:
>
> s.newAllocators;
>
> Josh
>
> On May 6, 2009, at 6:58 PM, James Harkins wrote:
>
>> I remembered later - there's also BusDict in my lib (ddwCommon I
>> believe).
>>
>> In emergencies, you can free specific indexes from the server's bus
>> allocators.
>>
>> // index could also be the first index in a multichannel bus
>> s.audioBusAllocator.free(index);
>>
>> or
>>
>> s.controlBusAllocator.free(firstBusIndex);
>>
>> hjh
>>
>> On May 6, 2009, at 5:36 PM, James Harkins wrote:
>>
>>> On Wed, May 6, 2009 at 9:08 AM,  <koonce@xxxxxxxxxxxxx> wrote:
>>>> What is the simplest way of freeing all allocated busses from a
>>>> previous,
>>>> terminated process? Sudden termination leaves no record of the
>>>> allocated
>>>> bus objects, so I can't see how to free them.
>>>>
>>>> Similarly, is there a way to list the currently assigned/allocated
>>>> busses
>>>> so  that I may then free them?
>>>
>>> Nope. It's the user's responsibility to track them.
>>>
>>> This kind of issue is exactly why I wrote PR/BP in the ddwChucklib
>>> quark. There, you have a Process object that encompasses both the
>>> behavior AND any resources it uses (including buses). Terminating the
>>> process doesn't kill the process (remove it from memory) -- you
>>> explicitly free it, and at that time, the process removes its
>>> resources.
>>>
>>> Processes are kept in a global collection for you so it's a lot
>>> harder
>>> to lose track of them.
>>>
>>> PR/BP is a pretty open framework with lots of options, but the basic
>>> principles are simple.
>>
>>
>> : H. James Harkins
>> : jamshark70@xxxxxxxxxxxxxxxxx
>> : http://www.dewdrop-world.net
>> .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
>>
>> "Come said the Muse,
>> Sing me a song no poet has yet chanted,
>> Sing me the universal."  -- Whitman
>>
>
> ******************************************
> /* Joshua D. Parmenter
> http://www.realizedsound.net/josh/
>
> ?Every composer ? at all times and in all cases ? gives his own
> interpretation of how modern society is structured: whether actively
> or passively, consciously or unconsciously, he makes choices in this
> regard. He may be conservative or he may subject himself to continual
> renewal; or he may strive for a revolutionary, historical or social
> palingenesis." - Luigi Nono
> */
>
>



_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/