JGMS 2 Posted 5 hours ago I want to run python functions in the background, for example like so: MI_CopyrightAddition.Enabled := false; TTask.Run( Procedure begin PyForm.Add_Copyright_Using_Python(FotoSerie,CopyRightTeken + String(CopyRightTekst), False); TThread.Synchronize(nil, procedure begin MI_CopyrightAddition.Enabled := TRUE; end); end); "PyForm.Add_Copyright_Using_Python" is a correctly working Python function, running normally in the main Thread. But in the above scheme it crashes: "Project .... raised exception class $C0000005 with message 'c0000005 ACCESS_VIOLATION'." Is there a way to get this working? Many thanks for your time. Share this post Link to post