Hi all, interesting problem;
I have a program working fine, I definded a pointer as thus:
and I can then use it fine etc....
but upon exiting the program I do this (including a few others as well), but this one seems to cause an illegal op, remarking it out works, but im unsure if the OS will automatically re-alocate the mem, if I don't, beside it's bad programming, any ideas why it may be causing an illigal op
I have a program working fine, I definded a pointer as thus:
- Code:
unsigned short* all_zone_items_p = new PIXEL[300 * 120]; //buffer for all zone graphics.
and I can then use it fine etc....
but upon exiting the program I do this (including a few others as well), but this one seems to cause an illegal op, remarking it out works, but im unsure if the OS will automatically re-alocate the mem, if I don't, beside it's bad programming, any ideas why it may be causing an illigal op
- Code:
delete [] all_zone_items_p;