NetTalk Central

Author Topic: ProcessLink procedures executing many times  (Read 2621 times)

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
ProcessLink procedures executing many times
« on: September 30, 2014, 12:42:58 AM »
Hi

While debugging a problem I have noted that the ProcessLink Procedure executes many times after actions in the browser.   Specifically:

Execute URL 15x
Select Menu Item 2x
Enter a field 1x
Push a button 2x

Is this ok and you just live with it even though you may have a lot of code executed here?

Thanks

Keith
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: ProcessLink procedures executing many times
« Reply #1 on: September 30, 2014, 01:09:15 AM »
ProcessLink is executed once for every request that comes from the browser.

Ideally you should only have code in there which is necessary for "all threads". You should also try and keep it "fast" (ie no disk access).

You're seeing it "15x" for a static URL because the URL contains links to embedded JavaScript or CSS or Images and so on. If you look in the log you'll see 15 requests for your "single URL".

Aside: This number reduces a lot when you combine javascript and css etc...

cheers
Bruce