The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Memory Related questions in C language Programming

    Discussion in 'Windows OS and Software' started by preet_mann04, Mar 29, 2008.

  1. preet_mann04

    preet_mann04 Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    I develap a draughting software in c language but it donot clear RAM mempry after completing execution. Pls suggest me memory clearing statements in c Language......

    Thanks in Advance
     
  2. Greg

    Greg Notebook Nobel Laureate

    Reputations:
    7,857
    Messages:
    16,212
    Likes Received:
    58
    Trophy Points:
    466
    I am guessing that you are using 'malloc' or some other function to acquire memory?

    If so, you kind of need to 'free' it using free((void*)ptr);