POV-Ray : Newsgroups : povray.programming : UNIX POVRay does not exit with failure on error : Re: UNIX POVRay does not exit with failure on error Server Time
2 Jul 2024 09:53:35 EDT (-0400)
  Re: UNIX POVRay does not exit with failure on error  
From: Wolfgang Wieser
Date: 11 Aug 2004 18:25:55
Message: <411a9cf3@news.povray.org>
Thorsten Froehlich wrote:

> In article <411a968f@news.povray.org> , Wolfgang Wieser
> <wwi### [at] nospamgmxde>  wrote:
> 
>> After thinking about it: What about completely sending all that
>> longjmp stuff to hell (grin...) and simply use:
> 
> Not a good idea.  While it may work, the problem is the side effect of an
> exception - it calls all the appropriate destructors.  However, as POV-Ray
> cleans up itself, this is not exactly desired...
> 
Hmm... I don't completely understand that. 
(1) the objects destroyed by the exception are all allocated on the stack. 
   How could that harm?
(2) There are quite a lot of "throw (int)" in the code and I don't see the 
   difference (without having had a look at the scattered catch constructs). 

Wolfgang


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.