hi everybody! I am writing Windows console application with Microsoft Visual Studio 2008 (using C only) which needs to allocate big amounts of RAM memory with malloc() anc calloc(). The execution of program can be stopped anytime by user pressing CTRL+C keys or by shutting down console window. What happens to previously allocated memory when it happens? Is it freed up by the system automatically (I guess not?) or do I need to keep track of allocated memory blocks and free() them all myself when the application receives close signal? If this is the case can anybody direct me to any C code solving this problem? Thank you in advance,Radek
R
radus215
@radus215