Why does a commit trigger an access violation?
问题 The following code using the Community version of Delphi and Interbase 2020 running on a Windows 10 machine results in the following error when the Commit is executed. What am I doing wrong? Project FamilyTree.exe raised exception class $C0000005 with message ‘access violation at 0x00481a6f: read of address 0x8b57569f’. procedure writepreamble; var sqltext : string; basicaction : tbasicaction; begin sqltext := 'insert into preambleds(preambleseq,text) values('; sqltext := sqltext+inttostr