Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound message buffer not working?

Date2012-04-30 17:06
FromAndres Cabrera
Subject[Cs-dev] Csound message buffer not working?
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/

Date2012-04-30 17:25
FromVictor
SubjectRe: [Cs-dev] Csound message buffer not working?
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/cs

Date2012-04-30 17:37
FromAndres Cabrera
SubjectRe: [Cs-dev] Csound message buffer not working?
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/cs

Date2012-04-30 17:40
Fromandy fillebrown
SubjectRe: [Cs-dev] Csound message buffer not working?
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

Date2012-04-30 17:56
FromVictor
SubjectRe: [Cs-dev] Csound message buffer not working?
Possibly best to avoid it then.



On 30 Apr 2012, at 17:37, 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
https://lists.sourc

Date2012-04-30 18:30
FromTito Latini
SubjectRe: [Cs-dev] Csound message buffer not working?
AttachmentsNone