Re: ON ERR CALL

2023-08-16 Thread stardata.info via 4D_Tech
d.com> Cc: stardata.info Subject: ON ERR CALL Hi All, I use 4DV16 on windows. I need to know the name of the method that call ON ERR CALL ("ERRORMETHOD") command, into the method "ERRORMETHOD". Is possible? Thanks /Ferdinando/ **

Re: ON ERR CALL

2023-08-16 Thread stardata.info via 4D_Tech
Cheers, -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of stardata.info via 4D_Tech Sent: Wednesday, August 16, 2023 10:07 AM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: stardata.info Subject: ON ERR CALL Hi All, I use 4DV16 on windows. I

Re: ON ERR CALL

2023-08-16 Thread stardata.info via 4D_Tech
Behalf Of stardata.info via 4D_Tech Sent: Wednesday, August 16, 2023 10:07 AM To: 4D iNug Technical<4d_tech@lists.4d.com> Cc: stardata.info Subject: ON ERR CALL Hi All, I use 4DV16 on windows. I need to know the name of the method that call ON ERR CALL ("ERRORMETHOD") command, into t

RE: ON ERR CALL

2023-08-16 Thread lists via 4D_Tech
10:07 AM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: stardata.info Subject: ON ERR CALL Hi All, I use 4DV16 on windows. I need to know the name of the method that call ON ERR CALL ("ERRORMETHOD") command, into the method "ERRORMETHOD". I

ON ERR CALL

2023-08-16 Thread stardata.info via 4D_Tech
Hi All, I use 4DV16 on windows. I need to know the name of the method that call ON ERR CALL ("ERRORMETHOD") command, into the method "ERRORMETHOD". Is possible? Thanks /Ferdinando/ ** 4D Internet Users

Re: v13+ On Err Call - overhead?

2018-04-18 Thread Chip Scheide via 4D_Tech
Thanks On Wed, 18 Apr 2018 14:17:29 +0200, Arnaud de Montard via 4D_Tech wrote: > >> Le 16 avr. 2018 à 18:38, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> a écrit : >> >> What kind of over head is there on setting and clearing On Err Call? >> >

Re: v13+ On Err Call - overhead?

2018-04-18 Thread Arnaud de Montard via 4D_Tech
> Le 16 avr. 2018 à 18:38, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > 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? I t

Re: v13+ On Err Call - overhead?

2018-04-17 Thread Chip Scheide via 4D_Tech
fact I > would happily ignore it even if the delay was 1000 times worse (which > I doubt), because the risk of missing a bug by over extending the > scope of ON ERR CALL would be too expensive. I would totally dismiss > the question of whether ON ERR CALL creates an overhead an always use

Re: v13+ On Err Call - overhead?

2018-04-17 Thread Keisuke Miyako via 4D_Tech
even if the time difference were significant (say, 0.0005 second per install/uninstall) I would not consider is an over head. in fact I would happily ignore it even if the delay was 1000 times worse (which I doubt), because the risk of missing a bug by over extending the scope of ON ERR CALL

Re: v13+ On Err Call - overhead?

2018-04-17 Thread Dani Beaubien via 4D_Tech
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

v13+ On Err Call - overhead?

2018-04-16 Thread Chip Scheide via 4D_Tech
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 (&quo

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-08 Thread Arnaud de Montard via 4D_Tech
> Le 1 juil. 2017 à 01:47, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > >> Yeah, I considered that direction too. I ruled it out because it's >> introducing a lot of moving parts for the sake of being able to run some >> code in a trigger. Since triggers aren't used so far that

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-08 Thread Arnaud de Montard via 4D_Tech
ror handler. Even though the server has an > error handler installed. Hi Kirk, from doc • about EoS: "When this attribute is checked, the execution context of the project method is comparable to that of triggers [...] 4D Server uses the "twin" process of the client process that req

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-08 Thread Arnaud de Montard via 4D_Tech
> Le 8 juil. 2017 à 00:43, David Adams via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > I'm not sure I'm following the basic setup because 'execute on server' can > mean two things in 4D, can you clarify? Still a command with a bad name. Confusion with the "execute on server" method

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Kirk Brooks via 4D_Tech
Hi Ben, On Fri, Jul 7, 2017 at 5:15 PM, Ben Kershaw via 4D_Tech < 4d_tech@lists.4d.com> wrote: > When a method with this property checked is executed, it runs in the > context of the servers “twin” process (which isn’t really a twin, since it > doesn’t really share anything with the client

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Alan Chan via 4D_Tech
We always install new On err call on triggers. Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >I don't remember...triggers? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archi

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread David Adams via 4D_Tech
Ben, Thanks for these details, that's a huge help. Does anyone know if this is documented anywhere? For that matter, are the "twin" processes documented anywhere? I know that they were discussed at some Summits in the past but, well, I haven't been to a Summit in over a decade. Too. Darn. Far.

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Ben Kershaw via 4D_Tech
Kirk Brooks wrote: >Yeah, so I'm talking about a method with the Execute on server attribute (or >property - whatever) checked. When a method with this property checked is executed, it runs in the context of the servers “twin” process (which isn’t really a twin, since it doesn’t really share

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread David Adams via 4D_Tech
> And this is really my question - is this a bug or am I missing something? Try it compiled and interpreted and see what you find - it might work compiled. Either way, if the behavior is undefined it would be great to get it sorted out. Error dialogs popping up on the 4D Server machine? Not good.

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Kirk Brooks via 4D_Tech
'execute on server' flag set then, huh. > What a great question! I hope this is what you mean because, yeah, that's a > nice detail. I don't know the answer and I won't be shocked to learn that > this is a gap in the ON ERR CALL coverage in 4D. (4D seems to approach > error handling as somethi

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread David Adams via 4D_Tech
erver that runs there. No, it won't get the ON ERR CALL you set up startup. The 'global' ON ERR CALL on 4D Server is for the application process and..I don't remember...triggers? It used to depend on compiled/interpreted and may depend on version. I don't remember off-hand and would want to verify with

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Kirk Brooks via 4D_Tech
Jody, Right, but what I'm seeing is a client side process which has an error handler installed. Running a method with EOS an error is blocking the server with the 4D native error handler. Even though the server has an error handler installed. This is following the what's in the docs: "O

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Jody Bevan via 4D_Tech
up in installs an error handler, ON ERR > CALL("err_log_only"). As the name implies it simply logs errors and keeps > churning. > > It doesn't seem to be called when a method called by Execute on server is > running. At least I'm occasionally seeing errors on the s

What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Kirk Brooks via 4D_Tech
I think I know the answer to this but think I'll ask anyway. When my server starts up in installs an error handler, ON ERR CALL("err_log_only"). As the name implies it simply logs errors and keeps churning. It doesn't seem to be called when a method called by Execute on server

Re: ON ERR CALL: Comments & Seeking Comments

2017-05-15 Thread Sannyasin Siddhanathaswami via 4D_Tech
Great tip! I’ll check it out for sure. Sannyasin Siddhanathaswami On May 14, 2017, 7:07 PM -1000, wrote: Seriously though, if you want a chance to develop more consistent and coherent code, you can't doo better than to read (or re-read) "Code Complete." (There's a second edition now, for those

Re: ON ERR CALL: Comments & Seeking Comments

2017-05-14 Thread David Adams via 4D_Tech
> For generic/lazy error testing (especially for Web Server items), I’ve been > logging the On Err Calls: > > LOG EVENT(Into 4D debug message;Error method+" Error Number: > "+String(Error)+"; Line:"+String(Error line)) > > This is interesting as it shows in the Console.app on a Mac (in the >

Re: ON ERR CALL: Comments & Seeking Comments

2017-05-14 Thread Sannyasin Siddhanathaswami via 4D_Tech
Thanks for this! Very helpful! I’ve started to use it more and more nowadays. I’m really curious how errors in 4D process tags are handled (especially in v16). I’m having a tough time debugging these tags through the 4D Web Server in v15. More testing needed as I didn’t realize you could use

ON ERR CALL: Comments & Seeking Comments

2017-05-12 Thread David Adams via 4D_Tech
Use it. All of the time. If you're a long-time 4D devleloper like me, you may have started out not using ON ERR CALL much, if at all. I can't remember why I was scared of it, but I tended to avoid it. That all changed forever some versions back for me (6? 6.5?) I think that it's 4D's job to give