V
Vicent Giner-Bosch
Hello.
If I do "exit(1)" in any part of my program, does it take into account
allocated space (instances of objects, and so on) and de-allocate it
before termining the execution??
To be more concrete:
The program defines an ofstream object (for text output), and a new
object via "new" statement, and then, in the middle of the execution,
it is possible that an "exit(1)" command arrises, so in that case the
lines where I "close" the ofstream object and I delete the object
created with the "new" statement will not be read. Is that fine??
Actually, this is all about handling exceptions, so, any hint, tip,
suggested reading...?
Thank you in advance for your answers!
If I do "exit(1)" in any part of my program, does it take into account
allocated space (instances of objects, and so on) and de-allocate it
before termining the execution??
To be more concrete:
The program defines an ofstream object (for text output), and a new
object via "new" statement, and then, in the middle of the execution,
it is possible that an "exit(1)" command arrises, so in that case the
lines where I "close" the ofstream object and I delete the object
created with the "new" statement will not be read. Is that fine??
Actually, this is all about handling exceptions, so, any hint, tip,
suggested reading...?
Thank you in advance for your answers!