I am trying to move 2 buttons on the form using a while loop checking for the buttons left property, but I have an Access Violation. I am exeting the procedure with CreateTh
I am executing the procedure with CreateThread().
CreateThread()
That is your problem. VCL code must only be called from the main UI thread. Use TThread.Synchronize to invoke the VCL code on the main thread.
TThread.Synchronize
That said, a timer might be a more appropriate solution to you problem than a thread.