You need to call Application.Initialize prior to anything if you want to use
LCL features (including its dialogs). Your uses clause seems overkill. Only
Interfaces, Forms and Dialogs units required for ShowMessage function.

--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Program-without-window-but-messages-tp5662570p5664268.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to