First of all; Thank you all for your input on this matter and for taking you time to answer the question in great detail.
The problem was a rookie mistake in this case. The size of the array is 2048, which generates element 0 to 2047. I made the mistake of reseting my index counter at element 2048 which ofcourse was out of bounds. So point goes to JeremyM
I'm sorry for the late response, but I had taken the day of yesterday when the customer called and wanted to test some things. I told them I was not ready but they really wanted to test before christmas. Turned out I had some more unwanted "features" that I had to resolve, so had to put a couple of hours into it.
Once again; Thank you and I wish you all a "God jul" from Sweden
The problem was a rookie mistake in this case. The size of the array is 2048, which generates element 0 to 2047. I made the mistake of reseting my index counter at element 2048 which ofcourse was out of bounds. So point goes to JeremyM
I'm sorry for the late response, but I had taken the day of yesterday when the customer called and wanted to test some things. I told them I was not ready but they really wanted to test before christmas. Turned out I had some more unwanted "features" that I had to resolve, so had to put a couple of hours into it.
Once again; Thank you and I wish you all a "God jul" from Sweden