could nyone plz tell me is memory leak possible with static memory allocation
memory leak with static allocationis memory leak possible with static memory allocation
Page 1 of 1
5 Replies - 2054 Views - Last Post: 30 October 2008 - 03:50 PM
Replies To: memory leak with static allocation
#2
Re: memory leak with static allocation
Posted 30 October 2008 - 06:33 AM
anytime you incorrectly assign and design pointers you could create a memory leak. The allocation does not necessarily have to be dynamic.
#3
Re: memory leak with static allocation
Posted 30 October 2008 - 10:42 AM
Dynamic memory is allocated whenever you use the keyword new. It must be 'coupled' with the keyword delete.
As a general rule, anytime you use new with [], you must delete with [].
As a general rule, anytime you use new with [], you must delete with [].
#4
Re: memory leak with static allocation
Posted 30 October 2008 - 10:43 AM
edit: nvm
This post has been edited by KYA: 30 October 2008 - 10:44 AM
#5
Re: memory leak with static allocation
Posted 30 October 2008 - 01:40 PM
#6
Re: memory leak with static allocation
Posted 30 October 2008 - 03:50 PM
Well, i didn't feel the need to labor on about the difference between dynamic and static memory allocation. Regardless, if you screw up a pointer you can have a memory leak.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|