Hi
Before i post a bug
In Windows/WinCE is Menu ID (MenuItem.Commad) is Zero based?
By my logic ID must be start from 1, zero mean no ID or Command

In Menus unit MenuItem.inc line 110
-------------------------------------------
FCommand := UniqueCommand;
-------------------------------------------

UniqueCommand started from 0

Look at line 209 when destroying the menu item, zero here not set to false.
-------------------------------------------
if FCommand <> 0 then CommandPool[FCommand] := False;
-------------------------------------------

-- 
I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3

Best Regards
Zaher Dirkey
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to