> literally memory segfault on not even complex code. Memory pointer issue or something
That sounds like your own misunderstanding of Object Pascal.