Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What the hell?
#4
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
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.
Reply


Messages In This Thread
What the hell? - by wallace - 09-21-2006, 06:03 AM
What the hell? - by Anonymous - 09-21-2006, 04:05 PM
What the hell? - by wallace - 09-21-2006, 10:19 PM
What the hell? - by wallace - 09-21-2006, 10:25 PM
What the hell? - by Anonymous - 09-22-2006, 04:25 AM
What the hell? - by Agamemnus - 09-22-2006, 06:49 AM
What the hell? - by DrV - 09-23-2006, 07:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)