Win32lib memory?/statement!

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu