OK, I just tried a very easy programm that looks like the example I gave you all. And it worked just fine. But the actual program I`m talking about does not work the same way. I am going to show you the actual code tomorrow. Maybe I made a mistake somewhere that the compiler doesnt recognise as an error.
The actual program is on another PC, so I`ll post the code tomorrow, please help me then!
Likely the error isn't at that part of the code. You may have an [out of bound] error somewhere else in your code. It's not predictable how such an error manifests.