EXCEPTION_ACCESS_VIOLATION when accessing TArray?

Are you absolutely sure its the .Num() and not your accessing of the pointer data after that point?

the errors are not always accurate to line number

please comment out all code

except the .num()

again, to clarify,

when you get chance:

  1. comment out all your code except the .Num(), keeping the .empty() too

  2. and using array of FStrings for “Modules”

I should think it IMPOSSIBLE for you to get a error this way

make sure all other code utilizing the UModule* is also commented out


my prediction = it has something to do with your pointers not the .Num() and the call stack line number is not showing that

Rama

PS: translation = you are not the only one finding this behavior very strange and hard to fathom, hope that helps you feel better :slight_smile: