0003983: Add Functions in guilib create a Division by Zero Erro (1 Viewer)

MediaPortal-Bot

Worlds greatest bot!
March 26, 2007
3,715
180
Home Country
Germany Germany
From Code<br /> <br /> int iItemsPerPage = _rowCount * _columnCount;<br /> int iPages = iItemsPerPage == 0 ? 0 : _listItems.Count / iItemsPerPage;<br /> if ((_listItems.Count % iItemsPerPage) != 0)<br /> {<br /> iPages++;<br /> }<br /> <br /> When itemsPerPage is Zero it it set to zero and followed by a modulo. Division by Zero.<br /> Quick fix of occurences of this reside in a hanging VideoPlugin, very likely because _listItems.Add(item) is called before the pages.<br /> <br /> Problem occurs when for example only a DVD drive is listed in VideoPlugins.<br /> <br /> The Divison by Zero error causes a jump out of the LoadDirectory always showing the WaitCursor.

Continue reading...
 

Users who are viewing this thread

Top Bottom