[Kst] [Bug 164002] New: Kst crashes after accessing the flagVector array of the VectorView Class
Yiwen Mao
yiwenv at live.ca
Fri Jun 13 23:14:26 CEST 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=164002
Summary: Kst crashes after accessing the flagVector array of the
VectorView Class
Product: kst
Version: unspecified
Platform: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: scripting
AssignedTo: kst kde org
ReportedBy: yiwenv live ca
Version: 1.7.0 (using KDE 4.0.1)
Installed from: Unspecified
Compiler: Fedora 6
OS: Linux
Kst will crash when try to access the array of the flagVector for a VectorView
//construct two vectors to create a VectorView
kst> x=new Vector();
Vector
kst> x.resize(10);
undefined
kst> for(var i=0;i<10;i++){x[i]=i+1}
10
kst> y=x;
Vector
kst> v=new VectorView(x,y)
VectorView
//construct a new Vector as a flag vector
kst> f=new Vector()
Vector
kst> f.resize(10)
undefined
kst> f.zero()
undefined
kst> f[2]=1
1
kst> f[5]=1
1
kst> f.array
0,0,1,0,0,1,0,0,0,0
//assign f as the flagVector for v
kst> v.flagVector=f;
Vector
//try to access the values of the flagVector
v.flagVector.array
//Kst crashes
More information about the Kst
mailing list