Page 1 of 1
ListIcon long list makes HideWindow very slow
Posted: Wed Aug 19, 2015 4:13 am
by IdeasVacuum
So, with a ListIcon populated with a fairly long list - 1 or 2 thousand rows as a Db Query result for example, it takes a long time to hide the Window - seems strange that should be the case, is there a work-around?
Re: ListIcon long list makes HideWindow very slow
Posted: Wed Aug 19, 2015 6:46 am
by RASHAD
Use Thread to populate the ListIcon in chunks
Each chunk = 100 item for exam.
Re: ListIcon long list makes CloseWindow very slow
Posted: Wed Aug 19, 2015 11:20 am
by IdeasVacuum
Hi Rashad
....the time it takes to populate the list isn't a problem, that's part of the progress during Db Query, Db table has at least 50,000 entries. The window has a search feature for the User to further narrow-down to the data required. The problem is that when the Window is closed by the User (not closed by the app, hidden instead) it takes a long time, well over 10 seconds.
I'm hiding the Window so that the list does not need to be re-loaded if the same data is to be listed again. Perhaps using CloseWindow() would be faster, but I'm also using HideWindow() with a view to destroying the listed data by overwriting with gobbledegook, freeing the ListIconGadget(), then CloseWindow() (not yet implemented).
Edit I'm getting too old. It's CloseWindow() that eats up the time, not HideWindow(), so I can in fact do exactly what is needed! (smacks head with Wok).
Does anyone know what happens to the list data in memory after FreeGadget() is applied to the ListIcon? Is the memory wiped, or is the data still there and therefore a potential security risk? Similarly, CloseWindow() - does data displayed in ListIconGadgets, StringGadgets etc remain in memory or is the memory wiped?