09-21-2006, 10:25 PM
New question: If I have a sub that allocates memory and I don't want it to allocate something twice (create an orphan,) can I deallocate first?
sub foo (s as sometype ptr)
deallocate s
s = allocate (len(sometype));
end sub
if I send it a blank pointer will the deallocate mess something up? It's basically doing the same as:
dim s as sometype ptr
deallocate s
sub foo (s as sometype ptr)
deallocate s
s = allocate (len(sometype));
end sub
if I send it a blank pointer will the deallocate mess something up? It's basically doing the same as:
dim s as sometype ptr
deallocate s
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.