Quantcast

API: GetSpout(), GetSpin()

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

API: GetSpout(), GetSpin()

rory walsh
Hopefully someone can offer some help on this issue but Cabbage is
crashing on exit since I updated my version of Csound. My constructor
has the following:

csound->PerformKsmps();
CSspout = csound->GetSpout();
CSspin  = csound->GetSpin();

where CSspout and CSspin are scoped pointers of type MYFLT.

I make no more calls to any Csound functions. But as soon as I exit I
get an assertion and my debugger takes me to dbgdel.cpp and the
following function(you can see the line producing the assertion):

void operator delete(
        void *pUserData
        )
{
        _CrtMemBlockHeader * pHead;

        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));

        if (pUserData == NULL)
            return;

        _mlock(_HEAP_LOCK);  /* block other threads */
        __TRY

            /* get a pointer to memory block header */
            pHead = pHdr(pUserData);

             /* verify block type */
            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));

            _free_dbg( pUserData, pHead->nBlockUse );

        __FINALLY
            _munlock(_HEAP_LOCK);  /* release other threads */
        __END_TRY_FINALLY

        return;
}

If I remove the calls to GetSpout() and GetSpin() in my destructor
everything exits perfectly. My feeling is that my two MYFLT pointers
are not being deleted, or can't be deleted. I just don't know why. Any
ideas?


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: API: GetSpout(), GetSpin()

Victor Lazzarini
What is in your destructor?
Try pointing CSspout and CSspin to NULL before destruction to see if it helps.

Victor

On 18 Jun 2012, at 17:37, Rory Walsh wrote:

> Hopefully someone can offer some help on this issue but Cabbage is
> crashing on exit since I updated my version of Csound. My constructor
> has the following:
>
> csound->PerformKsmps();
> CSspout = csound->GetSpout();
> CSspin  = csound->GetSpin();
>
> where CSspout and CSspin are scoped pointers of type MYFLT.
>
> I make no more calls to any Csound functions. But as soon as I exit I
> get an assertion and my debugger takes me to dbgdel.cpp and the
> following function(you can see the line producing the assertion):
>
> void operator delete(
>        void *pUserData
>        )
> {
>        _CrtMemBlockHeader * pHead;
>
>        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));
>
>        if (pUserData == NULL)
>            return;
>
>        _mlock(_HEAP_LOCK);  /* block other threads */
>        __TRY
>
>            /* get a pointer to memory block header */
>            pHead = pHdr(pUserData);
>
>             /* verify block type */
>            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
>
>            _free_dbg( pUserData, pHead->nBlockUse );
>
>        __FINALLY
>            _munlock(_HEAP_LOCK);  /* release other threads */
>        __END_TRY_FINALLY
>
>        return;
> }
>
> If I remove the calls to GetSpout() and GetSpin() in my destructor
> everything exits perfectly. My feeling is that my two MYFLT pointers
> are not being deleted, or can't be deleted. I just don't know why. Any
> ideas?
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: API: GetSpout(), GetSpin()

rory walsh
Thanks Victor. Turns out my scoped pointers weren't deleting properly.
Changing them to plain old pointers and pointing them to nullptr on
exit seems to sort out everything. Great. Thanks again. I think I'm
well and truly set up now on win7! At least I hope.....

On 18 June 2012 17:49, Victor Lazzarini <[hidden email]> wrote:

> What is in your destructor?
> Try pointing CSspout and CSspin to NULL before destruction to see if it helps.
>
> Victor
>
> On 18 Jun 2012, at 17:37, Rory Walsh wrote:
>
>> Hopefully someone can offer some help on this issue but Cabbage is
>> crashing on exit since I updated my version of Csound. My constructor
>> has the following:
>>
>> csound->PerformKsmps();
>> CSspout = csound->GetSpout();
>> CSspin  = csound->GetSpin();
>>
>> where CSspout and CSspin are scoped pointers of type MYFLT.
>>
>> I make no more calls to any Csound functions. But as soon as I exit I
>> get an assertion and my debugger takes me to dbgdel.cpp and the
>> following function(you can see the line producing the assertion):
>>
>> void operator delete(
>>        void *pUserData
>>        )
>> {
>>        _CrtMemBlockHeader * pHead;
>>
>>        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));
>>
>>        if (pUserData == NULL)
>>            return;
>>
>>        _mlock(_HEAP_LOCK);  /* block other threads */
>>        __TRY
>>
>>            /* get a pointer to memory block header */
>>            pHead = pHdr(pUserData);
>>
>>             /* verify block type */
>>            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
>>
>>            _free_dbg( pUserData, pHead->nBlockUse );
>>
>>        __FINALLY
>>            _munlock(_HEAP_LOCK);  /* release other threads */
>>        __END_TRY_FINALLY
>>
>>        return;
>> }
>>
>> If I remove the calls to GetSpout() and GetSpin() in my destructor
>> everything exits perfectly. My feeling is that my two MYFLT pointers
>> are not being deleted, or can't be deleted. I just don't know why. Any
>> ideas?
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: API: GetSpout(), GetSpin()

Victor Lazzarini
Glad to hear it. You should be developing on OSX, though ;). Lots of people wanting your software there.
On 18 Jun 2012, at 18:12, Rory Walsh wrote:

> Thanks Victor. Turns out my scoped pointers weren't deleting properly.
> Changing them to plain old pointers and pointing them to nullptr on
> exit seems to sort out everything. Great. Thanks again. I think I'm
> well and truly set up now on win7! At least I hope.....
>
> On 18 June 2012 17:49, Victor Lazzarini <[hidden email]> wrote:
>> What is in your destructor?
>> Try pointing CSspout and CSspin to NULL before destruction to see if it helps.
>>
>> Victor
>>
>> On 18 Jun 2012, at 17:37, Rory Walsh wrote:
>>
>>> Hopefully someone can offer some help on this issue but Cabbage is
>>> crashing on exit since I updated my version of Csound. My constructor
>>> has the following:
>>>
>>> csound->PerformKsmps();
>>> CSspout = csound->GetSpout();
>>> CSspin  = csound->GetSpin();
>>>
>>> where CSspout and CSspin are scoped pointers of type MYFLT.
>>>
>>> I make no more calls to any Csound functions. But as soon as I exit I
>>> get an assertion and my debugger takes me to dbgdel.cpp and the
>>> following function(you can see the line producing the assertion):
>>>
>>> void operator delete(
>>>        void *pUserData
>>>        )
>>> {
>>>        _CrtMemBlockHeader * pHead;
>>>
>>>        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));
>>>
>>>        if (pUserData == NULL)
>>>            return;
>>>
>>>        _mlock(_HEAP_LOCK);  /* block other threads */
>>>        __TRY
>>>
>>>            /* get a pointer to memory block header */
>>>            pHead = pHdr(pUserData);
>>>
>>>             /* verify block type */
>>>            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
>>>
>>>            _free_dbg( pUserData, pHead->nBlockUse );
>>>
>>>        __FINALLY
>>>            _munlock(_HEAP_LOCK);  /* release other threads */
>>>        __END_TRY_FINALLY
>>>
>>>        return;
>>> }
>>>
>>> If I remove the calls to GetSpout() and GetSpin() in my destructor
>>> everything exits perfectly. My feeling is that my two MYFLT pointers
>>> are not being deleted, or can't be deleted. I just don't know why. Any
>>> ideas?
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: API: GetSpout(), GetSpin()

rory walsh
There is a version out there for OSX. It's available on
code.google.com/p/cabbage
There are examples by Iain and Giorgio there too. Next release will be
out for windows soon. After that I'll update the OSX version. I'm
planning to launch it properly soon. Website is on the way and we're
currently writing lots of nice sample instruments. The good news is
school's out for the summer!

On 18 June 2012 18:34, Victor Lazzarini <[hidden email]> wrote:

> Glad to hear it. You should be developing on OSX, though ;). Lots of people wanting your software there.
> On 18 Jun 2012, at 18:12, Rory Walsh wrote:
>
>> Thanks Victor. Turns out my scoped pointers weren't deleting properly.
>> Changing them to plain old pointers and pointing them to nullptr on
>> exit seems to sort out everything. Great. Thanks again. I think I'm
>> well and truly set up now on win7! At least I hope.....
>>
>> On 18 June 2012 17:49, Victor Lazzarini <[hidden email]> wrote:
>>> What is in your destructor?
>>> Try pointing CSspout and CSspin to NULL before destruction to see if it helps.
>>>
>>> Victor
>>>
>>> On 18 Jun 2012, at 17:37, Rory Walsh wrote:
>>>
>>>> Hopefully someone can offer some help on this issue but Cabbage is
>>>> crashing on exit since I updated my version of Csound. My constructor
>>>> has the following:
>>>>
>>>> csound->PerformKsmps();
>>>> CSspout = csound->GetSpout();
>>>> CSspin  = csound->GetSpin();
>>>>
>>>> where CSspout and CSspin are scoped pointers of type MYFLT.
>>>>
>>>> I make no more calls to any Csound functions. But as soon as I exit I
>>>> get an assertion and my debugger takes me to dbgdel.cpp and the
>>>> following function(you can see the line producing the assertion):
>>>>
>>>> void operator delete(
>>>>        void *pUserData
>>>>        )
>>>> {
>>>>        _CrtMemBlockHeader * pHead;
>>>>
>>>>        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));
>>>>
>>>>        if (pUserData == NULL)
>>>>            return;
>>>>
>>>>        _mlock(_HEAP_LOCK);  /* block other threads */
>>>>        __TRY
>>>>
>>>>            /* get a pointer to memory block header */
>>>>            pHead = pHdr(pUserData);
>>>>
>>>>             /* verify block type */
>>>>            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
>>>>
>>>>            _free_dbg( pUserData, pHead->nBlockUse );
>>>>
>>>>        __FINALLY
>>>>            _munlock(_HEAP_LOCK);  /* release other threads */
>>>>        __END_TRY_FINALLY
>>>>
>>>>        return;
>>>> }
>>>>
>>>> If I remove the calls to GetSpout() and GetSpin() in my destructor
>>>> everything exits perfectly. My feeling is that my two MYFLT pointers
>>>> are not being deleted, or can't be deleted. I just don't know why. Any
>>>> ideas?
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: API: GetSpout(), GetSpin()

Victor Lazzarini
You need to divulge this a bit better. Not sure people know about it.

Victor
On 18 Jun 2012, at 18:40, Rory Walsh wrote:

> There is a version out there for OSX. It's available on
> code.google.com/p/cabbage
> There are examples by Iain and Giorgio there too. Next release will be
> out for windows soon. After that I'll update the OSX version. I'm
> planning to launch it properly soon. Website is on the way and we're
> currently writing lots of nice sample instruments. The good news is
> school's out for the summer!
>
> On 18 June 2012 18:34, Victor Lazzarini <[hidden email]> wrote:
>> Glad to hear it. You should be developing on OSX, though ;). Lots of people wanting your software there.
>> On 18 Jun 2012, at 18:12, Rory Walsh wrote:
>>
>>> Thanks Victor. Turns out my scoped pointers weren't deleting properly.
>>> Changing them to plain old pointers and pointing them to nullptr on
>>> exit seems to sort out everything. Great. Thanks again. I think I'm
>>> well and truly set up now on win7! At least I hope.....
>>>
>>> On 18 June 2012 17:49, Victor Lazzarini <[hidden email]> wrote:
>>>> What is in your destructor?
>>>> Try pointing CSspout and CSspin to NULL before destruction to see if it helps.
>>>>
>>>> Victor
>>>>
>>>> On 18 Jun 2012, at 17:37, Rory Walsh wrote:
>>>>
>>>>> Hopefully someone can offer some help on this issue but Cabbage is
>>>>> crashing on exit since I updated my version of Csound. My constructor
>>>>> has the following:
>>>>>
>>>>> csound->PerformKsmps();
>>>>> CSspout = csound->GetSpout();
>>>>> CSspin  = csound->GetSpin();
>>>>>
>>>>> where CSspout and CSspin are scoped pointers of type MYFLT.
>>>>>
>>>>> I make no more calls to any Csound functions. But as soon as I exit I
>>>>> get an assertion and my debugger takes me to dbgdel.cpp and the
>>>>> following function(you can see the line producing the assertion):
>>>>>
>>>>> void operator delete(
>>>>>        void *pUserData
>>>>>        )
>>>>> {
>>>>>        _CrtMemBlockHeader * pHead;
>>>>>
>>>>>        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));
>>>>>
>>>>>        if (pUserData == NULL)
>>>>>            return;
>>>>>
>>>>>        _mlock(_HEAP_LOCK);  /* block other threads */
>>>>>        __TRY
>>>>>
>>>>>            /* get a pointer to memory block header */
>>>>>            pHead = pHdr(pUserData);
>>>>>
>>>>>             /* verify block type */
>>>>>            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
>>>>>
>>>>>            _free_dbg( pUserData, pHead->nBlockUse );
>>>>>
>>>>>        __FINALLY
>>>>>            _munlock(_HEAP_LOCK);  /* release other threads */
>>>>>        __END_TRY_FINALLY
>>>>>
>>>>>        return;
>>>>> }
>>>>>
>>>>> If I remove the calls to GetSpout() and GetSpin() in my destructor
>>>>> everything exits perfectly. My feeling is that my two MYFLT pointers
>>>>> are not being deleted, or can't be deleted. I just don't know why. Any
>>>>> ideas?
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: API: GetSpout(), GetSpin()

rory walsh
I know. I will in time. I've some people beta testing it on OSX for
me. I want to catch as many little bugs as I can before I start
spreading the word!


On 18 June 2012 18:50, Victor Lazzarini <[hidden email]> wrote:

> You need to divulge this a bit better. Not sure people know about it.
>
> Victor
> On 18 Jun 2012, at 18:40, Rory Walsh wrote:
>
>> There is a version out there for OSX. It's available on
>> code.google.com/p/cabbage
>> There are examples by Iain and Giorgio there too. Next release will be
>> out for windows soon. After that I'll update the OSX version. I'm
>> planning to launch it properly soon. Website is on the way and we're
>> currently writing lots of nice sample instruments. The good news is
>> school's out for the summer!
>>
>> On 18 June 2012 18:34, Victor Lazzarini <[hidden email]> wrote:
>>> Glad to hear it. You should be developing on OSX, though ;). Lots of people wanting your software there.
>>> On 18 Jun 2012, at 18:12, Rory Walsh wrote:
>>>
>>>> Thanks Victor. Turns out my scoped pointers weren't deleting properly.
>>>> Changing them to plain old pointers and pointing them to nullptr on
>>>> exit seems to sort out everything. Great. Thanks again. I think I'm
>>>> well and truly set up now on win7! At least I hope.....
>>>>
>>>> On 18 June 2012 17:49, Victor Lazzarini <[hidden email]> wrote:
>>>>> What is in your destructor?
>>>>> Try pointing CSspout and CSspin to NULL before destruction to see if it helps.
>>>>>
>>>>> Victor
>>>>>
>>>>> On 18 Jun 2012, at 17:37, Rory Walsh wrote:
>>>>>
>>>>>> Hopefully someone can offer some help on this issue but Cabbage is
>>>>>> crashing on exit since I updated my version of Csound. My constructor
>>>>>> has the following:
>>>>>>
>>>>>> csound->PerformKsmps();
>>>>>> CSspout = csound->GetSpout();
>>>>>> CSspin  = csound->GetSpin();
>>>>>>
>>>>>> where CSspout and CSspin are scoped pointers of type MYFLT.
>>>>>>
>>>>>> I make no more calls to any Csound functions. But as soon as I exit I
>>>>>> get an assertion and my debugger takes me to dbgdel.cpp and the
>>>>>> following function(you can see the line producing the assertion):
>>>>>>
>>>>>> void operator delete(
>>>>>>        void *pUserData
>>>>>>        )
>>>>>> {
>>>>>>        _CrtMemBlockHeader * pHead;
>>>>>>
>>>>>>        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));
>>>>>>
>>>>>>        if (pUserData == NULL)
>>>>>>            return;
>>>>>>
>>>>>>        _mlock(_HEAP_LOCK);  /* block other threads */
>>>>>>        __TRY
>>>>>>
>>>>>>            /* get a pointer to memory block header */
>>>>>>            pHead = pHdr(pUserData);
>>>>>>
>>>>>>             /* verify block type */
>>>>>>            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
>>>>>>
>>>>>>            _free_dbg( pUserData, pHead->nBlockUse );
>>>>>>
>>>>>>        __FINALLY
>>>>>>            _munlock(_HEAP_LOCK);  /* release other threads */
>>>>>>        __END_TRY_FINALLY
>>>>>>
>>>>>>        return;
>>>>>> }
>>>>>>
>>>>>> If I remove the calls to GetSpout() and GetSpin() in my destructor
>>>>>> everything exits perfectly. My feeling is that my two MYFLT pointers
>>>>>> are not being deleted, or can't be deleted. I just don't know why. Any
>>>>>> ideas?
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>>>
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: API: GetSpout(), GetSpin()

Michael Gogins-2
And when will you want Cabbage to be released with the Windows installer?

Regards,
Mike

On Mon, Jun 18, 2012 at 1:53 PM, Rory Walsh <[hidden email]> wrote:

> I know. I will in time. I've some people beta testing it on OSX for
> me. I want to catch as many little bugs as I can before I start
> spreading the word!
>
>
> On 18 June 2012 18:50, Victor Lazzarini <[hidden email]> wrote:
>> You need to divulge this a bit better. Not sure people know about it.
>>
>> Victor
>> On 18 Jun 2012, at 18:40, Rory Walsh wrote:
>>
>>> There is a version out there for OSX. It's available on
>>> code.google.com/p/cabbage
>>> There are examples by Iain and Giorgio there too. Next release will be
>>> out for windows soon. After that I'll update the OSX version. I'm
>>> planning to launch it properly soon. Website is on the way and we're
>>> currently writing lots of nice sample instruments. The good news is
>>> school's out for the summer!
>>>
>>> On 18 June 2012 18:34, Victor Lazzarini <[hidden email]> wrote:
>>>> Glad to hear it. You should be developing on OSX, though ;). Lots of people wanting your software there.
>>>> On 18 Jun 2012, at 18:12, Rory Walsh wrote:
>>>>
>>>>> Thanks Victor. Turns out my scoped pointers weren't deleting properly.
>>>>> Changing them to plain old pointers and pointing them to nullptr on
>>>>> exit seems to sort out everything. Great. Thanks again. I think I'm
>>>>> well and truly set up now on win7! At least I hope.....
>>>>>
>>>>> On 18 June 2012 17:49, Victor Lazzarini <[hidden email]> wrote:
>>>>>> What is in your destructor?
>>>>>> Try pointing CSspout and CSspin to NULL before destruction to see if it helps.
>>>>>>
>>>>>> Victor
>>>>>>
>>>>>> On 18 Jun 2012, at 17:37, Rory Walsh wrote:
>>>>>>
>>>>>>> Hopefully someone can offer some help on this issue but Cabbage is
>>>>>>> crashing on exit since I updated my version of Csound. My constructor
>>>>>>> has the following:
>>>>>>>
>>>>>>> csound->PerformKsmps();
>>>>>>> CSspout = csound->GetSpout();
>>>>>>> CSspin  = csound->GetSpin();
>>>>>>>
>>>>>>> where CSspout and CSspin are scoped pointers of type MYFLT.
>>>>>>>
>>>>>>> I make no more calls to any Csound functions. But as soon as I exit I
>>>>>>> get an assertion and my debugger takes me to dbgdel.cpp and the
>>>>>>> following function(you can see the line producing the assertion):
>>>>>>>
>>>>>>> void operator delete(
>>>>>>>        void *pUserData
>>>>>>>        )
>>>>>>> {
>>>>>>>        _CrtMemBlockHeader * pHead;
>>>>>>>
>>>>>>>        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));
>>>>>>>
>>>>>>>        if (pUserData == NULL)
>>>>>>>            return;
>>>>>>>
>>>>>>>        _mlock(_HEAP_LOCK);  /* block other threads */
>>>>>>>        __TRY
>>>>>>>
>>>>>>>            /* get a pointer to memory block header */
>>>>>>>            pHead = pHdr(pUserData);
>>>>>>>
>>>>>>>             /* verify block type */
>>>>>>>            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
>>>>>>>
>>>>>>>            _free_dbg( pUserData, pHead->nBlockUse );
>>>>>>>
>>>>>>>        __FINALLY
>>>>>>>            _munlock(_HEAP_LOCK);  /* release other threads */
>>>>>>>        __END_TRY_FINALLY
>>>>>>>
>>>>>>>        return;
>>>>>>> }
>>>>>>>
>>>>>>> If I remove the calls to GetSpout() and GetSpin() in my destructor
>>>>>>> everything exits perfectly. My feeling is that my two MYFLT pointers
>>>>>>> are not being deleted, or can't be deleted. I just don't know why. Any
>>>>>>> ideas?
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>>>>
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: API: GetSpout(), GetSpin()

rory walsh
It will be ready for the next release. Thanks.

On Monday, 18 June 2012, Michael Gogins <[hidden email]> wrote:
> And when will you want Cabbage to be released with the Windows installer?
>
> Regards,
> Mike
>
> On Mon, Jun 18, 2012 at 1:53 PM, Rory Walsh <[hidden email]> wrote:
>> I know. I will in time. I've some people beta testing it on OSX for
>> me. I want to catch as many little bugs as I can before I start
>> spreading the word!
>>
>>
>> On 18 June 2012 18:50, Victor Lazzarini <[hidden email]> wrote:
>>> You need to divulge this a bit better. Not sure people know about it.
>>>
>>> Victor
>>> On 18 Jun 2012, at 18:40, Rory Walsh wrote:
>>>
>>>> There is a version out there for OSX. It's available on
>>>> code.google.com/p/cabbage
>>>> There are examples by Iain and Giorgio there too. Next release will be
>>>> out for windows soon. After that I'll update the OSX version. I'm
>>>> planning to launch it properly soon. Website is on the way and we're
>>>> currently writing lots of nice sample instruments. The good news is
>>>> school's out for the summer!
>>>>
>>>> On 18 June 2012 18:34, Victor Lazzarini <[hidden email]> wrote:
>>>>> Glad to hear it. You should be developing on OSX, though ;). Lots of people wanting your software there.
>>>>> On 18 Jun 2012, at 18:12, Rory Walsh wrote:
>>>>>
>>>>>> Thanks Victor. Turns out my scoped pointers weren't deleting properly.
>>>>>> Changing them to plain old pointers and pointing them to nullptr on
>>>>>> exit seems to sort out everything. Great. Thanks again. I think I'm
>>>>>> well and truly set up now on win7! At least I hope.....
>>>>>>
>>>>>> On 18 June 2012 17:49, Victor Lazzarini <[hidden email]> wrote:
>>>>>>> What is in your destructor?
>>>>>>> Try pointing CSspout and CSspin to NULL before destruction to see if it helps.
>>>>>>>
>>>>>>> Victor
>>>>>>>
>>>>>>> On 18 Jun 2012, at 17:37, Rory Walsh wrote:
>>>>>>>
>>>>>>>> Hopefully someone can offer some help on this issue but Cabbage is
>>>>>>>> crashing on exit since I updated my version of Csound. My constructor
>>>>>>>> has the following:
>>>>>>>>
>>>>>>>> csound->PerformKsmps();
>>>>>>>> CSspout = csound->GetSpout();
>>>>>>>> CSspin  = csound->GetSpin();
>>>>>>>>
>>>>>>>> where CSspout and CSspin are scoped pointers of type MYFLT.
>>>>>>>>
>>>>>>>> I make no more calls to any Csound functions. But as soon as I exit I
>>>>>>>> get an assertion and my debugger takes me to dbgdel.cpp and the
>>>>>>>> following function(you can see the line producing the assertion):
>>>>>>>>
>>>>>>>> void operator delete(
>>>>>>>>        void *pUserData
>>>>>>>>        )
>>>>>>>> {
>>>>>>>>        _CrtMemBlockHeader * pHead;
>>>>>>>>
>>>>>>>>        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));
>>>>>>>>
>>>>>>>>        if (pUserData == NULL)
>>>>>>>>            return;
>>>>>>>>
>>>>>>>>        _mlock(_HEAP_LOCK);  /* block other threads */
>>>>>>>>        __TRY
>>>>>>>>
>>>>>>>>            /* get a pointer to memory block header */
>>>>>>>>            pHead = pHdr(pUserData);
>>>>>>>>
>>>>>>>>             /* verify block type */
>>>>>>>>            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>
>
Loading...