Re: Auto Updating 4D Not Working

2019-04-08 Thread Cannon Smith via 4D_Tech
Hi John,

Thanks for the suggestion. I actually use a temporary folder to place the “new” 
version before calling SET UPDATE FOLDER. But I use the same one for all my 
applications and it works for all the rest, so I doubt security issues on the 
folder is the issue.

Thanks anyway.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Aetna, AB Canada




> On Apr 8, 2019, at 9:51 AM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> It is working for me with 17.1. The 4D application is in the Applications 
> folder and the update folder is a mounted disk image in the Downloads folder. 
> If you are using other types of paths, maybe try something like that? Perhaps 
> it could be a security restriction added by a recent macOS version. 

**
4D Internet Users Group (4D iNUG)
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: Auto Updating 4D Not Working

2019-04-08 Thread John DeSoi via 4D_Tech
Hi Cannon,

It is working for me with 17.1. The 4D application is in the Applications 
folder and the update folder is a mounted disk image in the Downloads folder. 
If you are using other types of paths, maybe try something like that? Perhaps 
it could be a security restriction added by a recent macOS version. 

John DeSoi, Ph.D.


> On Apr 4, 2019, at 10:01 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 4D v17.1HF1, macOS only. (It works fine on Windows). I’m using essentially 
> the same code as in several other applications, also on v17.1HF1, but this is 
> the only application that doesn’t work. Also, it was working in previous 
> versions of 4D, but doesn’t now. With no code changes.

**
4D Internet Users Group (4D iNUG)
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: Auto Updating 4D Not Working

2019-04-05 Thread Cannon Smith via 4D_Tech
Hi Lutz,

Thanks for replying. I’ve been using this mechanism in several applications for 
a few years now. No problems with any of them except this specific instance. I 
can’t see that I’m doing anything different in my code than with the other 
applications. Wondering if you can remember more details about 4D not quitting 
fast enough. Are you saying the new version would launch before your old 
version could get shutdown?

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Aetna, AB Canada




> On Apr 5, 2019, at 2:01 AM, Epperlein, Lutz (agendo) via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> We use our own update mechanism (introduced before SET UPDATE FOLDER and 
> RESTART 4D).
> But we tested the 4D mechanism some time ago (I think it was with 4D v13 or 
> maybe v12).
> The main problem was, that the application after calling RESTART4D doesn’t 
> quit fast enough. And there was no way to adjust that. We never tested this 
> update way again, so I can't say it is better with more recent 4D versions. 
> Could that related to your problem?

**
4D Internet Users Group (4D iNUG)
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: Auto Updating 4D Not Working

2019-04-05 Thread Epperlein, Lutz (agendo) via 4D_Tech
We use our own update mechanism (introduced before SET UPDATE FOLDER and 
RESTART 4D).
But we tested the 4D mechanism some time ago (I think it was with 4D v13 or 
maybe v12).
The main problem was, that the application after calling RESTART4D doesn’t quit 
fast enough. And there was no way to adjust that. We never tested this update 
way again, so I can't say it is better with more recent 4D versions. 
Could that related to your problem?

Regards
Lutz
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Auto Updating 4D Not Working

2019-04-04 Thread Cannon Smith via 4D_Tech
I’m having trouble with one particular app auto updating. When it should be 
quitting, it just hangs forever.

4D v17.1HF1, macOS only. (It works fine on Windows). I’m using essentially the 
same code as in several other applications, also on v17.1HF1, but this is the 
only application that doesn’t work. Also, it was working in previous versions 
of 4D, but doesn’t now. With no code changes.

Here are the symptoms.

- I’ve verified that SET UPDATE FOLDER is setting OK to 1.
- Also verified (using SHOW ON DISK) that the path used with SET UPDATE FOLDER 
is correct and points to a .app bundle.
- Verified that Updater.app is created by 4D (did this by removing it and 
seeing it put back in on the next try).
- Verified that the On Exit method is completing correctly (using the debug 
logging).
- Noticed that Updater.app is not launched, nor is an updater log file created.

I’m guessing it is hanging when it is trying to launch Updater.app, but that’s 
only a guess. Since I can’t see what 4D is trying to do at this point, and 
because the same code is working with other applications and with this 
application on Windows, I can’t figure out what is wrong. Wondering if anyone 
has any ideas I could try?

Thanks.

P.S. It also takes a fair amount of CPU until force quit.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Aetna, AB Canada




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**