it goes a little somthing like this:
Code:
class Note{
public:
int p, v, s, d;
void SetNote(int, int, int, int);
Note();
}
Note::Note(){
p=0;
d=0;
v=0;
s=0;
}
class Seq{
...
Note *oldN;
Note *newN;
int count;
void Select();
Seq();
...
}
Seq::Seq(){
...
newN = new Note[count];
}
void Seq::Select(){
...
...
oldN=new Note[count];
for(i=0;i<count;i++)
oldN[i] = newN[i];
if(newN!=nil)
delete newN; //<--THIS PRODUCES THE ERROR!!!
...
...
}
hmm...obviously this isn't the full code but I thought since the code is rather big and on another computah I only include the parts. Hopfully the above is enough to discover the error...:)
//btq