Re: The connection for this process has been disrupted or the connection could not be established

2017-10-25 Thread Arnaud de Montard via 4D_Tech
> Le 25 oct. 2017 à 18:23, Douglas von Roeder via 4D_Tech > <4d_tech@lists.4d.com> a écrit : > > Arnaud: > > [...] That is a function of "cooperative multitasking" and, now that we can > run code > pre-emotively, developers will have to have a more clear understanding of > (and better control

Re: Server Process "Frozen"-ish

2017-10-25 Thread David Adams via 4D_Tech
On Thu, Oct 26, 2017 at 7:45 AM, Timothy Penner via 4D_Tech < 4d_tech@lists.4d.com> wrote: Thanks for chiming in. Given the number and nature of the people reporting this bug, it's clearly a real bug. Can you give us some insight into what efforts 4D is making internally to track this down and fix

Re: v15 R(X) documentation

2017-10-25 Thread Keisuke Miyako via 4D_Tech
R releases in the broader sense refer to the channel, not a specific "version", which are sometimes called snapshots. today the current R release is 16R4 but in a few months the same link will take you to 16R5 pages. past R release documents are archived at livedoc.4d.com, but the principle is t

Re: v15 R(X) documentation

2017-10-25 Thread Keisuke Miyako via 4D_Tech
Hello, the way R releases work is that the ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mail

4D Write Pro - Exporting / Saving to other file formats (e.g., .rtf or .doc)

2017-10-25 Thread Michael McCall via 4D_Tech
We used to use 4D Write to create standalone RTF formatted reports which could then easily be opened and edited in Microsoft Word. We have just begun to look at 4D Write Pro. The closest command I could find to doing something like this in 4D Write Pro was WP Export Document but it does not ap

v15 R(X) documentation

2017-10-25 Thread Lee Hinde via 4D_Tech
When I option click on a 4D command in v15 I get taken to a web page on that topic, for the v15 family. When I do the same thing in v15R5, I get taken, sometimes, to 16v2 docs. But sometimes I end up, after much redirecting, to a random page. Is there a right way to do this? Are the v15 R docs

Re: Server Process "Frozen"-ish

2017-10-25 Thread Tim Nevels via 4D_Tech
On Oct 25, 2017, at 3:45 PM, Timothy Penner wrote: > I just want to add that one of the main benefits of the Forums > (http://forums.4d.com) is that it is also used by the 4D Engineers and they > do monitor, read, and participate in the discussions. So posting on the > forums could give you th

RE: Server Process "Frozen"-ish

2017-10-25 Thread Timothy Penner via 4D_Tech
Hi Tim, > This is how a programming forum is supposed to work. People contributing > ideas and sharing experiences. I think we are getting close to nailing down > where 4D engineers need to look to solve this problem. > I just want to add that one of the main benefits of the Forums (http://for

Re: Server Process "Frozen"-ish

2017-10-25 Thread John Baughman via 4D_Tech
> On Oct 25, 2017, at 6:55 AM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >> Anyway, I'm wondering if the problem is when either Tickcount, Milliseconds >> or another internal 4D time measure overflows into negative territory. I >> have no idea internally what measure 4D uses f

BUG in ST Get content type?

2017-10-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, 4D v16R4 I use the "loop example" to get all expressions in a WP area However, when the first "character" of the text in the area is an expression, this expression is skipped (not seen) It seems that when I call $type:=ST Get content type*;"WParea";$start;$end;$startBlock;$endBlock) for th

Re: Server Process "Frozen"-ish

2017-10-25 Thread Tim Nevels via 4D_Tech
On Oct 25, 2017, at 11:38 AM, Keith White wrote: > Wondered if you saw my guess/conjecture previously posted on this subject > (not that it's much help !)...:- > > OK, so we think this is due to DELAY PROCESS. > > The change to DELAY PROCESS somewhere in 4D v15 was to change from a Longint > t

Re: Server Process "Frozen"-ish

2017-10-25 Thread BTB-Gmail via 4D_Tech
I went to another machine and found out some more info. This appears to be a random problem which makes it difficult to reproduce and track down. Here is what I can summarize on the problem: 1) There isn’t a direct correlation to the Server UI window becoming unresponsive vs the delay process

Re: The connection for this process has been disrupted or the connection could not be established

2017-10-25 Thread Douglas von Roeder via 4D_Tech
Arnaud: I would say it is "a" way to use a Semaphore and the idea that it is a limit is the way that I've always understood it. The fact that it's a gobal semaphore means that it controls access to the code that follows and the scope of that is for all machines connected to the server. The semaph

Re: The connection for this process has been disrupted or the connection could not be established

2017-10-25 Thread Arnaud de Montard via 4D_Tech
> Le 25 oct. 2017 à 17:55, Douglas von Roeder via 4D_Tech > <4d_tech@lists.4d.com> a écrit : > > Arnaud: > > My understanding is that, given that 4D's scheduler has been "cooperative > multitasking" for virtually all of its history, the Idle command instructs > the current process to yield time

Re: Server Process "Frozen"-ish

2017-10-25 Thread Lee Hinde via 4D_Tech
I did not know you could do that on a live server running a compiled database. > > > > On Oct 18, 2017, at 7:33 PM, Timothy Penner via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > You can issue commands from the Runtime Explorer by adding a new > expression and typing the command into the expres

Re: The connection for this process has been disrupted or the connection could not be established

2017-10-25 Thread Douglas von Roeder via 4D_Tech
Arnaud: My understanding is that, given that 4D's scheduler has been "cooperative multitasking" for virtually all of its history, the Idle command instructs the current process to yield time to other processes. Without the While…End while loop and the Idle command, the current process would hit th

Re: The connection for this process has been disrupted or the connection could not be established

2017-10-25 Thread Arnaud de Montard via 4D_Tech
> Le 25 oct. 2017 à 04:27, David Ringsmuth via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > The “Semaphore” function is crashing 4D Remote’s connection to 4D Server. > > While(Semaphore("MySemaphore";300)) // ←- this line crashes > // more coding here > End while The doc "about semaphore" t

Re: Server Process "Frozen"-ish

2017-10-25 Thread BTB-David via 4D_Tech
Interesting. I did some more digging and here is what I’ve found. I have 13 Macs that run up to 10 databases on each machine of differing 4D versions (usually 4Dv13.4, 4Dv15R5 and 4Dv16.0) - all are 32 bit. I focused on 2. Machine 1 - uptime 158 days I have 10 databases running on this mach

Re: Server Process "Frozen"-ish

2017-10-25 Thread Jeffrey Kain via 4D_Tech
Did you also see the 4D Server UI stop updating? I'm referring to the server monitor user interface that graphs the CPU time, etc. When this has happened to our mirror servers, those graphs stop updating. The server can still be manipulated, but those graphs don't update and the stored procedur

Re: Server Process "Frozen"-ish

2017-10-25 Thread Cannon Smith via 4D_Tech
Hi Keith, Yes, that’s why I was curious about the machine up time. It would be curious if it was close to 24.86 days, for example. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 25, 2017, at 8:34 AM, Keith White via 4D_Tech <4d_tech@lists.4d.com> >

Re: Server Process "Frozen"-ish

2017-10-25 Thread Keith White via 4D_Tech
Hi David and Canon Wondered if you saw my guess/conjecture previously posted on this subject (not that it's much help !)...:- OK, so we think this is due to DELAY PROCESS. The change to DELAY PROCESS somewhere in 4D v15 was to change from a Longint to Real. But the problems didn't start unt

Re: Server Process "Frozen"-ish

2017-10-25 Thread Cannon Smith via 4D_Tech
Hi David, Good to have more information—thanks! I’m curious, do you know what the machine up time was when it stalled? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 25, 2017, at 7:57 AM, BTB-David via 4D_Tech <4d_tech@lists.4d.com> > wrote

Re: Server Process "Frozen"-ish

2017-10-25 Thread BTB-David via 4D_Tech
I can confirm that this is caused by the delay process. In fact, all of my server processes that use delay process stopped on the same day. They had different levels of delay times set. As per your suggestion, I went into Runtime Explorer on the Server and typed resume process (pid) and they