Re: [Dev-C++] declare a two-dimension array
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2006-12-13 22:37:45
|
For most operating systems, it is not necessary to delete objects before the application ends. The OS will release all memory allocated to the program. However, it is strongly recommended to always release all allocated memory. By being tidy, it is possible to run memory analyzers to inform about potential memory leaks, i.e. memory blocks that the program forgets that it has allocated. /Per W On Thu, 14 Dec 2006, Ahmed Han wrote: > 1024x512 array doesn't allocate so much memory to give an error. > Do you get any error message? > > By the way, if you declare a pointer using new operator, you must delete it > before the end. > |