Win32lib memory?/statement!
- Posted by Euman <euman at bellsouth.net> Jun 04, 2001
- 363 views
I was checking a few things out with win32lib recently and would like to know why for all the redundancy associated with most of the procedures..... for instance this little procedure: ---------------------------------------------------- procedure removeLVItem( integer iItem ) end if end for lvitem_data[iItem] = lvitem_BLANK lvitem_owner[iItem] = -1 if iItem = length(lvitem_data) then lvitem_data = lvitem_data[1 .. length(lvitem_data)-1] lvitem_owner = lvitem_owner[1 .. length(lvitem_owner)-1] end if end procedure Looks like if you have a slew of items in the LV that if you wanted to load some other data that you would be one by one freeing the memory for each item. I havent given this alot of time or thought but couldnt you globally track spent memory? and free only once. Euman