Re: win32lib virt_lv.exw bug

new topic     » goto parent     » topic index » view thread      » older message » newer message

>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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu