Custom UDataTable factory memory Freeing crash
I created a factory which allows me to create a DataTable for my Weapons attributes. The factory creates the object ok, but the values are garbage, attempting to edit the rows, causes a free memory crash on the heap. Am i doing something wrong?
Any help would be appreciated
asked Jun 01 '19 at 12:22 PM in C++ Programming
I found the problem, i never set the default struct to be used, so it was allocating memory for FTableRowBase not FAttributeRow inside the AddRow function.
Seems to solve the issue.
Hopefully this is the valid soloution and i am not missing anything else, but the factory works at wanted now.
answered Jun 01 '19 at 01:56 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here