home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16328 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.2 KB

  1. Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!fuug!kiae!newsserv
  2. From: dolgov@inpbox.inp.nsk.su (Yuri V. Dolgov)
  3. Newsgroups: comp.lang.c++
  4. Subject: How to run destructors of all objects when failure exit occurs ?
  5. Date: Thu, 12 Nov 92 20:35:06 +0700
  6. Distribution: world
  7. Organization: Budker Institute of Nuclear Physics SD RAS
  8. Message-ID: <AAAsb0h8xN@inpbox.inp.nsk.su>
  9. Sender: news-service@newcom.kiae.su
  10. Reply-To: dolgov@inpbox.inp.nsk.su
  11. Lines: 19
  12.  
  13.    Dear C++ gurus !
  14.  
  15.    Often I use failure program exit when some conditions are bad.
  16. The trouble is: I created some objects (e.g. dialog boxes, network connections
  17. and so on) and I want to run destructors before program exit.
  18. Is there exist standard technique in C++ language to solve this problem ?
  19.  
  20. Thanx in advance,
  21.  
  22. Yuri Dolgov,
  23.  
  24. Novosibirsk Institute of Nuclear Physics, Siberia, Russia.
  25. -- 
  26. -------------------------------------------------------------------------------
  27. Yuri Dolgov                               Internet: dolgov@inp.nsk.su
  28. Programmer                                Phone:    +7(3832)359 147
  29. Budker Institute of Nuclear Physics       Novosibirsk, Russia.
  30.  
  31.  
  32.