In my defence it's been a long day.
Forgot to initialise my own class, which sets up some important static variables.
And also forgot to construct a class member
There might have been a memory issue too, I might test that once I get everything behaving as expected.
"Don't forget to initialise!"