I do get 'Warning: Symbol "MainFormOnTaskbar" is not portable'.
Just ignore, this property is only needed for
Windows, so it's declared platform-dependent.
For your information, this property was introduced so that main window caption and taskbar icon can have different text. But this is usually unnecessary, and it causes some strange bugs. Therefore, in the new version of
Lazarus (4.0, IIRC), this line is added automatically in new projects (and has a directive to hide this warning).
But why is this needed for this program, Version 2, and not for Version 1?
Perhaps your two projects were created in different versions of the IDE?
Is this line missing in the previous version?