Why this thread raise exception? [duplicate]
问题 This question already has answers here : Delphi: Access Violation at the end of Create() constructor (2 answers) Closed 3 years ago . i am trying to create a thread in sample project but i got an exception raised here is the sample project code unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: