ArrayNum is larger than ArrayMax
When I play my game everything works fine for the first 30 seconds, then my inventory stops drawing and a few seconds later I get this error: http://gyazo.com/6be5584d47622ad604beacf7443026cf
Here's if you don't want to look at the screenshot:
Any ideas? I've tried null checking everything, but nothing works. :(
asked Feb 11 '15 at 04:10 PM in C++ Programming
Your issues sounds to me as if it is related to garbage collection. Especially as you say that it is working fine for some time and it then is going to crash. To better help you I'd need to know how your array declaration looks like and how and what you add to it (UObject?). As I see in your screenshots the array is a TArray. A wild guess would be that you didn't mark it as managed by using UPROPERTY() in the declaration and it contains UObjects which aren't referenced from somewhere else.
Hope this helps and if not please provide more informations.
answered Feb 12 '15 at 12:41 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here