Re: win32lib virt_lv.exw bug
- Posted by "Derek Parnell" <ddparnell at bigpond.com> Jan 28, 2004
- 462 views
>From: Tone =8Akoda <tskoda at hotmail.com> >Subject: win32lib virt_lv.exw bug > > >this line in DoLVN_GETDISPINFO(): >store(lParam, LVDISPINFO_LVITEMpszText, lText) > >should be changed to this: >poke (pText, lText & 0) >store(lParam, LVDISPINFO_LVITEMpszText, pText) > >and at start and end of program this: >pText =3D allocate (256) >free (pText) > >else after scroling for a while virtual listview it becomes slower and=20 >slower scroling it. Thanks. This is a very subtle bug. The original code slowly used up RAM without ever returning it to Windows. Your fix grabs a fix amount of ram once and the app reuses it. -- Derek