@Thomas
Hey 8-)
"You should increase the stack size to avoid crashes"
Done that, I discovered that my code got too big for a plain vanilla A1200, that´s the problem. It's more than 50K of source now.
"I don't get any incomplete type message from you code."
Yes, neither do I, I must have corrected the bug while trying to reproduce it, but I still can't find what's wrong in the original code :lol:
"In your code you probably used the wrong case. E.g. struct LONGSegment2compare instead of struct LONGSegment2Compare"
I tried to fix it again last night without any luck, I must be blind. I think I'm gonna wait till my A4000 is up and running again... Or maybe I'm gonna give WinUAE a try (not the ideal dev environment I know...)
The thing I don't understand is that my struct declaration posted here is copy/pasted from the original code, as well as the AllocMem line and I've checked everything and all names match. This is a weird one.