home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Quality Assurance
Bugtracker Feed
0003983: Add Functions in guilib create a Division by Zero Erro
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MediaPortal-Bot" data-source="post: 896229" data-attributes="member: 48617"><p>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.</p><p></p><p><a href="http://mantis.team-mediaportal.com/view.php?id=3983" target="_blank">Continue reading...</a></p></blockquote><p></p>
[QUOTE="MediaPortal-Bot, post: 896229, member: 48617"] 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. [url="http://mantis.team-mediaportal.com/view.php?id=3983"]Continue reading...[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugtracker Feed
0003983: Add Functions in guilib create a Division by Zero Erro
Contact us
RSS
Top
Bottom