| Heh, that user data thing caused me a big headache when I was first
using the api. Dark corner indeed. That definitely has to go!
~ andy.f
On Mon, Apr 30, 2012 at 12:37 PM, Andres Cabrera wrote:
> Yes, it's one of the dark corners of the API... You are supposed to
> enable the message buffer and then you can pop messages from the
> message buffer. It's an alternative to setting a callback function,
> useful for quick runs of Csound. The big disadvantage in the current
> implementation, is that the message buffer is stored in the user data
> pointer, so you can't pass user data to any other callback if you are
> using the message buffer.
>
> Cheers,
> Andrés
>
> On Mon, Apr 30, 2012 at 5:25 PM, Victor wrote:
>> I have never used that. How is supposed to work?
>>
>>
>>
>> On 30 Apr 2012, at 17:06, Andres Cabrera wrote:
>>
>>> Hi,
>>>
>>> I'm trying to use Csound's internal message system but its crashing on compile:
>>>
>>> {
>>> CSOUND *csoundD;
>>> csoundD=csoundCreate(0);
>>> csoundEnableMessageBuffer(csoundD, 1);
>>>
>>> int result = csoundCompile(csoundD,argc,argv);
>>> }
>>>
>>> Don't have a debug build handy, so can't be better help...
>>>
>>> Cheers,
>>> Andrés
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |