Csound Csound-dev Csound-tekno Search About

[Cs-dev] error with option "-+max_str_len" in csound6

Date2013-07-12 12:44
Fromjoachim heintz
Subject[Cs-dev] error with option "-+max_str_len" in csound6
hi -

i have a lot of csound5 files which use the option
-+max_str_len=N

now i get this error:
  *** error setting option 'max_str_len' to '10000': invalid variable name

can the old option simply be ignored instead of this error? i think the 
best might be to print out a warning like:
option 'max_str_len' is no longer used in csound6 -- option ignored.

best -

	joachim

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-07-12 14:33
FromSteven Yi
SubjectRe: [Cs-dev] error with option "-+max_str_len" in csound6
Hi Joachim,

I put the -+max_str_len back in and had it set the value into a dummy
location.  I tried rendering with "csound trapped.csd
-+max_str_len=10000" and did not get an error.  I committed this to
GIT, could you try building from latest?  Also, I didn't look too
deeply how the configuration variable system worked, but it didn't
look easy to report a warning.  I did modify the message, such that if
you use "csound --help", you get:

-+max_str_len=, min: 10, max: 10000
(Previously set max string length + 1, no longer used but left here
for backwards compatibility)

I'm not sure that's the best message to give, so any should feel free
to modify that (it's in Top/csound.c).

Thanks!
steven

On Fri, Jul 12, 2013 at 7:44 AM, joachim heintz  wrote:
> hi -
>
> i have a lot of csound5 files which use the option
> -+max_str_len=N
>
> now i get this error:
>   *** error setting option 'max_str_len' to '10000': invalid variable name
>
> can the old option simply be ignored instead of this error? i think the
> best might be to print out a warning like:
> option 'max_str_len' is no longer used in csound6 -- option ignored.
>
> best -
>
>         joachim
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-07-13 16:48
Fromjoachim heintz
SubjectRe: [Cs-dev] error with option "-+max_str_len" in csound6
hi steven (and victor) -

thanks -- works now again. best -

	joachim



Am 12.07.2013 15:33, schrieb Steven Yi:
> Hi Joachim,
>
> I put the -+max_str_len back in and had it set the value into a dummy
> location.  I tried rendering with "csound trapped.csd
> -+max_str_len=10000" and did not get an error.  I committed this to
> GIT, could you try building from latest?  Also, I didn't look too
> deeply how the configuration variable system worked, but it didn't
> look easy to report a warning.  I did modify the message, such that if
> you use "csound --help", you get:
>
> -+max_str_len=, min: 10, max: 10000
> (Previously set max string length + 1, no longer used but left here
> for backwards compatibility)
>
> I'm not sure that's the best message to give, so any should feel free
> to modify that (it's in Top/csound.c).
>
> Thanks!
> steven
>
> On Fri, Jul 12, 2013 at 7:44 AM, joachim heintz  wrote:
>> hi -
>>
>> i have a lot of csound5 files which use the option
>> -+max_str_len=N
>>
>> now i get this error:
>>    *** error setting option 'max_str_len' to '10000': invalid variable name
>>
>> can the old option simply be ignored instead of this error? i think the
>> best might be to print out a warning like:
>> option 'max_str_len' is no longer used in csound6 -- option ignored.
>>
>> best -
>>
>>          joachim
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net