[RESOLVED] Segfault TableHeaderComponent 'this' was 0xFFFFFFFFFFFFFFEF when accessing TableHeaderComponent::column.size()

TableHeaderComponent header;

// this is the root of the segfault when i traced the call stack
    header->addColumn("column1", 1, 20, 30, 50, TableHeaderComponent::ColumnPropertyFlags::defaultFlags, 0);

i get the segfault too when i call other function like header->getColumnName() or header->getColumnIdAtX() etc.

when i look at those function definition they all call column.size() which the segfault appears:
Exception thrown: read access violation. this was 0xFFFFFFFFFFFFFFEF.

is there anything i should do before using TableHeaderComponent or calling those function?

this is a mess. my TableHeaderComponent was actually a unallocated pointer. (should i delete this thread?)


You can just edit the title to add (solved) or something, so people can decide themselves, if they want to ignore that.
I don’t think you can delete threads, only posts, that are not too old.