I am migrating a Delphi application to FPC / Lazarus, and this application displays information in a splash screen. When a block has an initialization section, this initialization section calls something like:
Splash.Info(unit_name)
This works in Delphi, but when I compiled it using FPC / Lazarus, then I got an exception when I create a form with a splash screen:
Failed to create win32 control, error 1407 : Cannot find window class
I found that forms can be created after the call Application.Initialize;, so my workaround is to create a splash form when ScreenInfo.Initialized=true. It works, but does not show all the information. Is there a way to show the shape of the burst from the unit initialization section, before Application.Initialize;?
source
share