[SOLVED] FormCreate not executed? lazarus / 21-General ---------------------------------------------------------------------- incendio · 2023-12-20 04:28 Hi guys, I experienced a strange behavior on one of a form in my application, FormCreate event seem not executed. Others forms in the same application didn't have problem with FormCreate event. Here are the codes : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  msg   : string; procedure TInpAccsMnFrm.FormCreate(Sender: TObject);begin  msg := 'Hello';end; procedure TInpAccsMnFrm.FormShow(Sender: TObject);begin  ShowMessage('xx' + msg + 'yy');end;  Messagebox raised with a message xxyy. Any hints, why this is happen? Note :Lazarus 2.2.2 32 bit on Windows 10 64bit. ---------------------------------------------------------------------- incendio · 2023-12-20 04:48 Found the problem. may be a bug in Lazarus. When double clicked OnCreate in Object Inspector, there was an error in my source code. An error message raised, with confirmation to Abort / Continue button.  Choosed Abort button.  This is the problem, although in source code the declaration of procedure FormCreate(Sender: TObject) already exist, but it seem it was not registered in Lazarus system. So when compiled, Lazarus didn't executed this event. Deleted this procedure in source code, and recreated again via double clicked in Object Inspector, solved the problem.