it goes a little somthing like this:
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...:)
int p, v, s, d;
void SetNote(int, int, int, int);
newN = new Note[count];
oldN[i] = newN[i];
delete newN; //<--THIS PRODUCES THE ERROR!!!