Re: Sometimes speed bites

2018-06-15 Thread Robert McKeever via 4D_Tech
But the code does have an UNLOAD RECORD command. Executed before being handed 
off to the letter editor process.

> On Jun 15, 2018, at 5:56 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I'd have a look at workers and get away from code that depends on timing.
> 
> --
> Jeffrey Kain
> jeffrey.k...@gmail.com
> 
> 
> 
> 
>> On Jun 14, 2018, at 9:47 PM, Robert McKeever via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> But if the letter editing process is sitting idle waiting for another letter 
>> to edit, it is resumed, and I get a message from 4D that you are trying to 
>> edit a letter that you are already editing. Damn, now running too fast. 4D 
>> is not recognizing the UNLOAD RECORD in the resumed process. So, a LOAD 
>> RECORD/If Locked loop does what is necessary.
> 
> **
> 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:4d_tech-unsubscr...@lists.4d.com
> **

_
Bob McKeever  http://www.mswl.com 
McKeever's Software Wizardry
Port Coquitlam, B.C.
bobmckee...@mac.com




**
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:4d_tech-unsubscr...@lists.4d.com
**

RE: Sometimes speed bites

2018-06-15 Thread Dennis, Neil via 4D_Tech
> But if the letter editing process is sitting idle waiting for another letter 
> to edit, it is resumed, 
> and I get a message from 4D that you are trying to edit a letter that you are 
> already editing.
> Damn, now running too fast. 4D is not recognizing the UNLOAD RECORD in the 
> resumed
> process. So, a LOAD RECORD/If Locked loop does what is necessary.

Sounds like a job for a worker :) 

Unload the record, message the worker... done.

Neil









Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
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:4d_tech-unsubscr...@lists.4d.com
**

Re: Sometimes speed bites

2018-06-15 Thread Jeffrey Kain via 4D_Tech
I'd have a look at workers and get away from code that depends on timing.

--
Jeffrey Kain
jeffrey.k...@gmail.com




> On Jun 14, 2018, at 9:47 PM, Robert McKeever via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> But if the letter editing process is sitting idle waiting for another letter 
> to edit, it is resumed, and I get a message from 4D that you are trying to 
> edit a letter that you are already editing. Damn, now running too fast. 4D is 
> not recognizing the UNLOAD RECORD in the resumed process. So, a LOAD 
> RECORD/If Locked loop does what is necessary.

**
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:4d_tech-unsubscr...@lists.4d.com
**

Sometimes speed bites

2018-06-14 Thread Robert McKeever via 4D_Tech
4D v15 Server, new Mac Pro tower, 10.13.5.

The code has been running on an older MacPro tower for many years. Now a second 
office. So, it gets the old tower, and the main office gets the new one.

I put in an update last night that added even more speed. Yeah, everyone likes 
speed.

Part of the process is the creation of a consult letter, which is then handed 
off to a second process for editing, releasing the patient record in the 
process. So, the primary process creates the letter in a template, saves it, 
does an UNLOAD RECORD. If the letter editing process has never been started, 
then it creates a new process, handing off the letter id, and all is well.

But if the letter editing process is sitting idle waiting for another letter to 
edit, it is resumed, and I get a message from 4D that you are trying to edit a 
letter that you are already editing. Damn, now running too fast. 4D is not 
recognizing the UNLOAD RECORD in the resumed process. So, a LOAD RECORD/If 
Locked loop does what is necessary.

Not sure about v16 yet.
_
Bob McKeever  http://www.mswl.com 
McKeever's Software Wizardry
Port Coquitlam, B.C.
bobmckee...@mac.com




**
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:4d_tech-unsubscr...@lists.4d.com
**