Search:

Type: Posts; User: dougieb

Search: Search took 0.00 seconds.

  1. Replies
    52
    Views
    10,722

    that's great guys, makes sense. thanks,

    that's great guys, makes sense.

    thanks,
  2. Replies
    52
    Views
    10,722

    ok, so just to clarify (so I never need ask...

    ok, so just to clarify (so I never need ask again!).

    if the program is interrupted, the OS will free up any memory that has been allocated.

    if the program exits (finishes, crashes), the OS will...
  3. Replies
    52
    Views
    10,722

    and the OS does that because it is an interrupt?...

    and the OS does that because it is an interrupt?

    whereas if the program completes (and I don't free memory), the OS won't free it for me? thus leading to a memory leak?

    PS. actually thinking...
  4. Replies
    52
    Views
    10,722

    this is excellent. I just set out to find the...

    this is excellent. I just set out to find the difference between malloc and declaring variables (and why you don't free variables), and here is it after a short search. I didn't realise the...
Results 1 to 4 of 4