You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SJSUcmpe130
Hi,
I was hoping somebody might be kind enough to give me a quick run down
memory allocation and reallocation in C++. When should memory be
allocated/reallocated/deleted? I've ran into memory issues on the last
assignment with huge amounts of data, and while some of it is most
likely due to my own system's limitations, I also feel like I'm not
doing properly myself.
Should I call delete on everything involving pointers?
Frank (sjsu) Lin
unread,
Oct 26, 2011, 7:30:04 PM10/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to kvysh...@gmail.com, SJSUcmpe130
try wiki "dynamic memory allocation"
In fact, it has little to do with pointers, but with "new". Just that new returns a pointer to the dynamic object. You want to de-allocate object when it is no longer needed.