I have tried the dynamic arrays. I created an array Public Samples as Short[] Inside the program i used Dim Samples As New Short[countSamples] to add an array-entry. countSamples is incremented each new Sample. The program runs through the readin-phase, but there is no array created with all the samples. What is wrong?