...
object Sendcommandtomplayer1: TMenuItem
Caption = 'Send command to mplayer...'
OnClick = Sendcommandtomplayer1Click
end
end
object N10: TMenuItem
Caption = '-'
end
object Previous1: TMenuItem
Caption = '< &Prev'
OnClick = Previous1Click
end
object Next1: TMenuItem
Caption = '&Next >'
OnClick = sbNextClick
end
end
Your .lfm is corrupt.
Notice how the last three objects are orphaned, with an "end" above their listing that should not be there, because these objects should be enclosed by that "end" and not preceded by it.
Unfortunately it is often hard, if not impossible, to edit large and complex .lfm files using the Lazarus editor, because although it provides ultra-helpful red highlights for paired items
the designer also caches edits and can do various unexpected changes behind your back; and sometimes it incorrectly reverts changes you try to make.
You can try to edit the .lfm outside the Lazarus IDE. If you are cunning, you may be able to refactor the .lfm data so it is correct.
But it is not for the faint-hearted.