So do you think the problem is in the FreePascal memory allocation?
That it is incompatible with how GP2X expects it?