On Fri, Dec 18, 2015 at 2:06 PM, Mattias Gaertner <[email protected]> wrote: > On Thu, 17 Dec 2015 21:42:28 +0100 (CET) > Michael Van Canneyt <[email protected]> wrote: > >>[...] >> I tried to install the lazprojectgroups package. >>[...] >> if ContainerMenuIndex>ContainerMenuItem.Count then begin >> debugln('TIDEMenuSection.UpdateMenuStructure CREATE >> BottomSeparator Name="',Name,'" >> ContainerMenuIndex=',dbgs(ContainerMenuIndex),' >> ContainerMenuItem.Count=',dbgs(ContainerMenuItem.Count >> GetRoot.WriteDebugReport(' Bottom ',true); >> end; >> >> Looks strange, since if that happens, there is sure to be a crash with the >> insert, but no action other than a debug message is posted ? > > It means there is an inconsistency. This should never happen.
Just guessing, didn't read the actual code, but shouldn't it be "if ContainerMenuIndex>=ContainerMenuItem.Count then begin" anyway? >> What can I do to prevent this and yet have both packages installed? > > There is already a bug report > http://bugs.freepascal.org/view.php?id=29198 > > I'm not yet sure where the real bug is. > > Mattias I'm also missing some command to view the current Project Group... and 'Save Project Group' doesn't handle nil. Just in case somebody decide to dive in the code before I do ;-) Best regards, Flávio -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
