You've almost certainly got a tight loop in your main thread, so control is never being passed back to the GUI to keep the form live.
You will need to either work out how to move your computations to a background thread, or to call Application.ProcessMessages every few iterations.
More than that we can't say, because you haven't provided example code, haven't told us what OS you're using, haven't told us what version of Lazarus you're using, haven't told us what version of FPC you're using...
If you isolate the problem and post any code fragments (i.e. rather than appending a .zip etc. to a message), please note the button marked # above the editing pane. If you don't use that to markup your code then important details will get lost since any time the forum software sees [ it will interpret (and remove it) as a formatting tag.
MarkMLl