| Destroy() is not a member of the Csound class, it's called in the
destructor of the Csound class. Either way your advise seems to have
done the trick, I shouldn't have been cleaning up before stopping the
thread. Thanks again,
Rory.
2009/8/23 Rory Walsh :
> THanks guys, I'll try that out and let you know if it works..
>
> 2009/8/21 PINOT Francois :
>> I would use this:
>>
>> csThread->Stop();
>> csThread->Join();
>> csound->Cleanup;
>> csound->Destroy;
>> delete csThread;
>> delete csound;
>>
>> Francois Pinot
>>
>> Andres Cabrera a écrit :
>>>
>>> I've done the cleanup after joining the threads, and I call
>>> csound->Destroy().
>>>
>>> Cheers,
>>> Andrés
>>>
>>> On 8/21/09, Rory Walsh wrote:
>>>
>>>>
>>>> I've a number of host applications that just don't want to quit when I
>>>> close the main GUI window. I have an OnClose() event that's called
>>>> when a user closes the application, in that event I have the following
>>>> code:
>>>>
>>>> MyFrame::~MyFrame(){
>>>> csound->Cleanup();
>>>> csThread->Stop();
>>>> csThread->Join();
>>>> delete csThread;
>>>> delete csound;
>>>> }
>>>>
>>>> It still hangs, is there anything else I can add to it?
>>>>
>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |