- March 26, 2007
- 3,715
- 180
- Home Country
- 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...
Continue reading...