Csound Csound-dev Csound-tekno Search About

[Csnd] Problem with global string variable

Date2014-02-19 19:16
Fromodiliscia
Subject[Csnd] Problem with global string variable
Hello list:
I send attached to this message three files:
1)ats-rigth.csd
2)ats-wrong.csd
3)oboe-A5.ats
When I run ats-wrong.csd I get:
Compiler Info/Warnings/Errors:
Csound tidy up: Segmentation violation

However, running ats-rigth.csd, everything works fine.
The only difference between both files is that in 
ats-wrong.csd I use the assignment:

gs_ATS_file "oboe-A5.ats" 

To create a global string variable that holds the file name I need.
In the ats-rigth.csd I just use literally the string with the file name.

The Csound version I am using is: 
Csound version 6.02.0 (double samples) Jan  6 2014
And I've tried the same code under Linux Ubuntu LTS 12.4 and
Windows 7 Home Edition 64 bits with the same result.

Is this an issue with memory allocation of strings?
Or I am doing something wrong?

Best
Oscar Pablo

ats-rigth.csd
  
ats-wrong.csd
  
oboe-A5.ats   



--
View this message in context: http://csound.1045644.n5.nabble.com/Problem-with-global-string-variable-tp5732678.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-02-19 19:19
FromTarmo Johannes
SubjectRe: [Csnd] Problem with global string variable

It should be gS for global string
T

2014 2 19 21:16 kirjutas kuupäeval "odiliscia" <odiliscia@hotmail.com>:
Hello list:
I send attached to this message three files:
1)ats-rigth.csd
2)ats-wrong.csd
3)oboe-A5.ats
When I run ats-wrong.csd I get:
Compiler Info/Warnings/Errors:
Csound tidy up: Segmentation violation

However, running ats-rigth.csd, everything works fine.
The only difference between both files is that in
ats-wrong.csd I use the assignment:

gs_ATS_file "oboe-A5.ats"

To create a global string variable that holds the file name I need.
In the ats-rigth.csd I just use literally the string with the file name.

The Csound version I am using is:
Csound version 6.02.0 (double samples) Jan  6 2014
And I've tried the same code under Linux Ubuntu LTS 12.4 and
Windows 7 Home Edition 64 bits with the same result.

Is this an issue with memory allocation of strings?
Or I am doing something wrong?

Best
Oscar Pablo

ats-rigth.csd
<http://csound.1045644.n5.nabble.com/file/n5732678/ats-rigth.csd>
ats-wrong.csd
<http://csound.1045644.n5.nabble.com/file/n5732678/ats-wrong.csd>
oboe-A5.ats <http://csound.1045644.n5.nabble.com/file/n5732678/oboe-A5.ats>



--
View this message in context: http://csound.1045644.n5.nabble.com/Problem-with-global-string-variable-tp5732678.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"