>>31
It is not necessary, but a need? When do you need to use dynamic allocation? To allocate memory for a popup dialog that says memory allocation failed? I bet you do allocate memory for dialogs, am I right? That's only a need to make up for shoddy programming skills and that's ok with me, as long it's not me doing it. Maybe another examples calls for dynamic allocation. Let's say you open 25000 images in photoshop, oh no, bad example...it would be better if photoshop limited the amount of memory to use by a setting, I wouldn't want to know what would happen if photoshop tries to 25K images, would it crash, would my unsaved work be saved?
Your turn, give an example where it is a good idea.