home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!fuug!kiae!newsserv
- From: dolgov@inpbox.inp.nsk.su (Yuri V. Dolgov)
- Newsgroups: comp.lang.c++
- Subject: How to run destructors of all objects when failure exit occurs ?
- Date: Thu, 12 Nov 92 20:35:06 +0700
- Distribution: world
- Organization: Budker Institute of Nuclear Physics SD RAS
- Message-ID: <AAAsb0h8xN@inpbox.inp.nsk.su>
- Sender: news-service@newcom.kiae.su
- Reply-To: dolgov@inpbox.inp.nsk.su
- Lines: 19
-
- Dear C++ gurus !
-
- Often I use failure program exit when some conditions are bad.
- The trouble is: I created some objects (e.g. dialog boxes, network connections
- and so on) and I want to run destructors before program exit.
- Is there exist standard technique in C++ language to solve this problem ?
-
- Thanx in advance,
-
- Yuri Dolgov,
-
- Novosibirsk Institute of Nuclear Physics, Siberia, Russia.
- --
- -------------------------------------------------------------------------------
- Yuri Dolgov Internet: dolgov@inp.nsk.su
- Programmer Phone: +7(3832)359 147
- Budker Institute of Nuclear Physics Novosibirsk, Russia.
-
-
-