TSubclassOf cause access violation crash in shipping package
I don't know if my problem is really an Unreal bug but the behavior is quite strange and may be unexpected, so I share it with you in bug reports section in cas of.
I use TSubclassOf<> in a TArray for an inventory. It works in editor but often crash in shipping package when I try to access default object where it should not (all checks are here).
I'm just thinking about UPROPERTY on TArray, it may be a garbage collector problem, as is seems pointers are behind TSubclassOf. In this case, I don't know if this beavior is unexpected or if it's just not evident. I will search in this way and post I'm finding any clue.
Someone has any idea of what can be wrong with this ?
asked Oct 23 '16 at 12:44 PM in Bug Reports
Seems it is a garbage collection problem, for the moment I stop crashing in my shipping package. So TArrayof UObject derived class needs UPROPERTY macro to avoid undesirable behaviors like this.
The garbage collection overview doc may not be clear on this point:
answered Oct 24 '16 at 12:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here