Hi Chip, I would run some tests to find out what the impact is.
Capture the time, run the code a number of times (say 1000) and then capture
the time again. Do this with the On Err Call and without and you should get a
sense of the impact.
If your production environment runs compiled, then this code should be run
compiled.
For example:
$vs:=milliseconds
For($t;1;1000)
For($i;1;Some_Integer_Value)
on err call("Error_Handler")
do stuff which could generate error
on err call ("")
do other stuff
end for
end for
$ve:=milliseconds
$timeTaken:=$ve-$vs
Good luck!
Dani
> On Apr 16, 2018, at 10:38 AM, Chip Scheide via 4D_Tech <[email protected]>
> wrote:
>
> What kind of over head is there on setting and clearing On Err Call?
>
> If On Err Call is being set and cleared in a loop, is there a
> significant overhead issue?
>
> ex:
>
> For($i;1;Some_Integer_Value)
> on err call("Error_Handler")
> do stuff which could generate error
> on err call ("")
> do other stuff
> end for
> ---------------
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************