October 2nd, 2013, 09:11 AM
[RESOLVED] Regarding new operator.
Please go through the below code.
DrawnBitmap = new Graphics::TBitmap;
// Other initialisation code
// method calls with the various events
In the above, method Drawing() calls on when an event trigger.
Every time it deletes the memory (data) and allocate "new" memory in Initialisation() method.
What will happen, If I don't delete the allocated memory before calling Initialise() in Drawing() method ?
Is it a good idea to delete the memory and re allocate with a new operator?
Thanks in advance.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!