Prevent execution path termination when exception raised

From: Andrew (andrew.am_at_gmail.com)
Date: 11/25/04

  • Next message: Tom de Neef: "Re: Prevent execution path termination when exception raised"
    Date: 24 Nov 2004 18:33:14 -0800
    
    

    Hi there

    I am calling a function in a loop, if an exception is raised the
    execution path is terminated. How can I handle the exception but
    continue in my loop?

    Any help would be appreciated, Thanks.


  • Next message: Tom de Neef: "Re: Prevent execution path termination when exception raised"

    Relevant Pages

    • Re: Prevent execution path termination when exception raised
      ... > I am calling a function in a loop, if an exception is raised the ... > execution path is terminated. ...
      (comp.lang.pascal.delphi.misc)
    • Re: Prevent execution path termination when exception raised
      ... Why not wrap it in a try except/finally section within the loop. ... > I am calling a function in a loop, if an exception is raised the ...
      (comp.lang.pascal.delphi.misc)
    • Re: long double versions of functions in gcc under Cygwin
      ... rather than the nearest enclosing one) and a decent exception ... them it doesn't seem like goto usage would be affected ... int typfun() ... Why use a for loop when it is just a while loop in disguise? ...
      (comp.lang.c)
    • Re: CInternetSession
      ... the presence of the Sleepindicates the serious design flaw. ... Sleep() calls around like pixie dust, your design is fundamentally broken and will need to ... If you use Sleepin a loop, your design is probably wrong and needs to be ... The "First Chance Exception" message usually indicates nothing harmful. ...
      (microsoft.public.vc.mfc)
    • Re: Get_Line problem (GNAT bug?)
      ... Now, if the program specs says: "read the lines from input until EOF", then this for me immediately translates into a loop with some exit condition. ... "Read until" - you have a regular end-of-sequence condition here. ... I'm not convinced that exception might be a correct design choice for breaking the loop that reads data from well formatted file. ...
      (comp.lang.ada)