List Info

Thread: Wx::Perl::ListCtrl




Wx::Perl::ListCtrl
country flaguser name
United Kingdom
2007-03-21 21:08:01
Hi,

Attached diff fixes documented problem with
Wx::Perl::ListCtrl->SetItemData being called LONG_MAX or
more times.

It also includes tests too.

Fix involves reseting index values for all items every
2147483640th time
SetItemData is called.

Knowing that if I had a Wx::Perl::ListCtrl open on my
desktop which
refreshed every minute with 3000 items, it would crash on
the 497th day
caused me great concern 

Clearly I need to get out of the house more.

Mark

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxperl-users mailing list
wxperl-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxperl-use
rs

  
Re: Wx::Perl::ListCtrl
user name
2007-03-31 05:25:34
On Thu, 22 Mar 2007 02:08:01 +0000
Mark Dootson <mark.dootsonznix.com> wrote:

  Hi,

> Attached diff fixes documented problem with
> Wx::Perl::ListCtrl->SetItemData being called
LONG_MAX or more times.
> 
> It also includes tests too.
> 
> Fix involves reseting index values for all items every
2147483640th time
> SetItemData is called.

  I applied a slightly modified form of your patch, the
only
substantial change is forcing integer arithmetic and using
sprintf
"%u", otherwise sometimes I obtained floating
point values.
 
> Clearly I need to get out of the house more.

  Me too... Anyway, 0.02 uploaded to CPAN.

Thanks!
Mattia

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxperl-users mailing list
wxperl-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxperl-use
rs

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )