I get an exception "Index out of bounds in list read access" when having a TMS office 2007 ribbon application with a number of pages and toolbars, one toolbar holding a GUI style dropdown list. When I shrink the window so the toolbar of the style dropdown goes into compact mode, when I select a higher index entry of the style list, the program crashes. The call stack after setting the style is as follows:
:75d6b9bc KERNELBASE.RaiseException + 0x58
:004BDE63 Exceptionlog::Call_HookedRaise(Code=????, Flags=????, NArgs=????, Args=:0018ED58)
AdvToolBar.TDbgList.GetItemsEx(8)
AdvToolBar.TCustomAdvToolBarStyler.ApplyStyle(tsOffice2010Black)
AdvToolBarStylers.TAdvToolBarOfficeStyler.SetToolBarStyle(bsOffice2010Black)
AdvToolBarStylers.TAdvToolBarOfficeStyler.SetComponentStyle(tsOffice2010Black)
AdvAppStyler.TAdvFormStyler.ApplyStyleToForm($4544280,tsOffice2010Black)
AdvAppStyler.TAdvFormStyler.ApplyStyle
AdvAppStyler.TAdvFormStyler.SetStyle(tsOffice2010Black)
AdvAppStyler.TAdvAppStyler.SetStyle(tsOffice2010Black)
I have a version of my application with almost all code removed, no images etc. so you can reproduce. I can zip and mail as a test case, please let me know a mail address. Thanks!