Re: Failed To Create A Listening Socket ?

2018-05-10 Thread Wayne Stewart via 4D_Tech
Allan,

On any 4D port is what I meant (the db engine port, the sql port, the
web port etc etc etc)

Regards,

Wayne


Wayne Stewart
about.me/waynestewart




On 11 May 2018 at 14:49, Wayne Stewart  wrote:
> Allan,
>
> Nothing else running on that port?
>
> Regards,
>
> Wayne
>
>
> Wayne Stewart
> about.me/waynestewart
>
>
>
>
> On 11 May 2018 at 12:56, Allan Udy via 4D_Tech <4d_tech@lists.4d.com> wrote:
>> Hi All,
>>
>> We have a Windows Server 2012 setup as a test machine.  It was used for
>> testing last weekend - Web Server started and behaved perfectly fine.
>>
>> This afternoon I started the 4D server for more testing and got a Runtime
>> error (it's a Compiled and Merged Server app):
>>
>>  Failed to create a listening socket
>>
>> and then the message that the database cannot be published.
>>
>> Anyone have any ideas or suggestions why/how this happened?
>>
>> Absolutely no changes made to the server, or the 4D database or datafile
>> between testing sessions  (we're testing a remote app's access into the
>> system, not the 4D database itself).  I've checked the firewall on the
>> machine, have turned SSL on and off, tried different Ports for the web
>> server, checked the machine has internet access and that it can be pinged
>> across the network etc, with no luck...
>>
>> Using v16R4.About to move to R6 next week.
>>
>> I don't understand what I'm missing.  so any suggestions are welcome.
>>
>> Cheers,
>> Allan Udy
>>
>> Golden Micro Solutions Ltd, Blenheim, New Zealand
>> http://www.golden.co.nz
>>
>> **
>> 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
>> **
**
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: Failed To Create A Listening Socket ?

2018-05-10 Thread Wayne Stewart via 4D_Tech
Allan,

Nothing else running on that port?

Regards,

Wayne


Wayne Stewart
about.me/waynestewart




On 11 May 2018 at 12:56, Allan Udy via 4D_Tech <4d_tech@lists.4d.com> wrote:
> Hi All,
>
> We have a Windows Server 2012 setup as a test machine.  It was used for
> testing last weekend - Web Server started and behaved perfectly fine.
>
> This afternoon I started the 4D server for more testing and got a Runtime
> error (it's a Compiled and Merged Server app):
>
>  Failed to create a listening socket
>
> and then the message that the database cannot be published.
>
> Anyone have any ideas or suggestions why/how this happened?
>
> Absolutely no changes made to the server, or the 4D database or datafile
> between testing sessions  (we're testing a remote app's access into the
> system, not the 4D database itself).  I've checked the firewall on the
> machine, have turned SSL on and off, tried different Ports for the web
> server, checked the machine has internet access and that it can be pinged
> across the network etc, with no luck...
>
> Using v16R4.About to move to R6 next week.
>
> I don't understand what I'm missing.  so any suggestions are welcome.
>
> Cheers,
> Allan Udy
>
> Golden Micro Solutions Ltd, Blenheim, New Zealand
> http://www.golden.co.nz
>
> **
> 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
> **
**
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
**

Failed To Create A Listening Socket ?

2018-05-10 Thread Allan Udy via 4D_Tech

Hi All,

We have a Windows Server 2012 setup as a test machine.  It was used for 
testing last weekend - Web Server started and behaved perfectly fine.


This afternoon I started the 4D server for more testing and got a 
Runtime error (it's a Compiled and Merged Server app):


 Failed to create a listening socket

and then the message that the database cannot be published.

Anyone have any ideas or suggestions why/how this happened?

Absolutely no changes made to the server, or the 4D database or datafile 
between testing sessions  (we're testing a remote app's access into the 
system, not the 4D database itself).  I've checked the firewall on the 
machine, have turned SSL on and off, tried different Ports for the web 
server, checked the machine has internet access and that it can be 
pinged across the network etc, with no luck...


Using v16R4.About to move to R6 next week.

I don't understand what I'm missing.  so any suggestions are welcome.

Cheers,
Allan Udy

Golden Micro Solutions Ltd, Blenheim, New Zealand
http://www.golden.co.nz

**
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: Download 4Dv16R5

2018-05-10 Thread Tai Bui via 4D_Tech
Hi Cannon,

You can download them from:
http://download.4d.com/Products/Current/4D_16R5/Installers/

Best Regards,
-Tai B.




-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Cannon Smith 
via 4D_Tech
Sent: Thursday, May 10, 2018 12:55 PM
To: 4D iNug Technical
Cc: Cannon Smith
Subject: Download 4Dv16R5

I can’t find a place to download the 32-bit version of 4Dv16R5 for Windows. 
Does anyone know how to find older R-releases?

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




**
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
**
**
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
**

Download 4Dv16R5

2018-05-10 Thread Cannon Smith via 4D_Tech
I can’t find a place to download the 32-bit version of 4Dv16R5 for Windows. 
Does anyone know how to find older R-releases?

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




**
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: OPEN FORM WINDOWS

2018-05-10 Thread stardata.info via 4D_Tech

Hi Kristopher,

"Movable form dialog box" option work fine.

Thanks

Ferdinando


Il 08/05/2018 22:12, Kristopher Merolla ha scritto:


Hi Ferdinando,

This looks like a bug to me, I will get a bug report raised for the issue.

To get around it, you can add the REDRAW WINDOW command at the end, 
that should refresh the window after your query.


$Win:=*Open form window*("form";_Palette form window_;_Horizontally 
centered_;_Vertically centered_;*)


*DIALOG*("form")

*CLOSE WINDOW*

*REDRAW WINDOW*

Best Regards,

Kristopher


Kristopher Merolla
Technical Support Engineer

Telephone : 
Email : kmero...@4d.com
Web :   



4D inc
95 S. Market Street, Suite #240
CA 95113San Jose- United States

Standard :  
Fax :   

Banner 

*From:*stardata.info [mailto:stard...@stardata.info]
*Sent:* Tuesday, May 8, 2018 10:46 AM
*To:* Kristopher Merolla ; 4D iNug Technical 
<4d_tech@lists.4d.com>

*Subject:* Re: OPEN FORM WINDOWS

Hi Kristopher,

This is the window opened for do a query:

This after the query done and window closed, like you can see the 
title of the windows is upgraded with 6 record, but the selection of 
records is not correct displayed.


If i click on a row of output for, 4D upgrade the row clicked, if i 
click on one button up of form, the selection of record is finaly 
upgraded.


Using the option Plain form window this not happen, after closed the 
window the records selection is upgraded.


Thanks

/Ferdinando/

Il 08/05/2018 18:33, Kristopher Merolla ha scritto:

Hi Ferdinando,

So you are doing something like this?

On my output form I have two buttons, one opens a palette form
window and the other a plain form window.

The “form” opened by these buttons has some fields and a button on
it that will query the table for the ID matching the row clicked.

The window shows selection 1 of 10 but displays all the records:

After clicking something else, like a button on the output form or
something like that, the form then updates displaying the
selection (or if you click off the 4D window):

Did this work any differently for you in an older version of 4D?

The selection is actually changed, which can be seen at the top of
the form, it just does not update the display on the form.  It
seems like the display on the form is waiting on another event,
like another click, to actually display the updated records.



*Kristopher Merolla*

Technical Support Engineer

Telephone :



Email :



kmero...@4d.com 

Web :






*4D inc*

95 S. Market Street, Suite #240

CA 95113 San Jose - United States

Standard :



Fax :




Banner 

-Original Message-
From: stardata.info [mailto:stard...@stardata.info]
Sent: Tuesday, May 8, 2018 9:19 AM
To: Kristopher Merolla  ;
4D iNug Technical <4d_tech@lists.4d.com> 
Subject: Re: OPEN FORM WINDOWS

Hi Kristopher,

Below my answers.

Thanks

Ferdinando

Il 08/05/2018 17:46, Kristopher Merolla ha scritto:

> Hi Ferdinando,

>

> In 16.3 HF2 I put together a simple case, making a custom output
form for a table with two buttons.  One button runs your first
block of code to open a Palette window and the other a Plain
window.  The "form" opened by the buttons on the output form has
field variables, and I am able to modify them and when closing the
window, the records are modified.

>

> Is this what you are trying to accomplish?

The issue is that using the option Palette form window, the list
of records in the output form is not displayed correctly.

>

> If not, what is in your "form" (are there any other buttons,
bits of code, etc) and what exactly do you mean by the "selection
of the records are not upgraded in the output form"?  Are you
trying to change the selection like a query or modify the records?
Do you have any other code executing here?

I open the window for do a queries, when I close the window, the
list of records are the same and are not upgraded. If i click on
another button upper the form windows, i can see the new selection
of records.

>

> Regards,

> Kristopher

>

>

>

> Kristopher Merolla

> Technical Support Engineer

>

> 4D Inc

> 95 S. Market Street, Suite #240

> CA 95113 San Jose

> United States

>

> Telephone :

> Standard :

> Fax :

> Email : kmero...@4d.com 

> Web :

>

> -Original Message-

> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of

> stardata.info via 4D_Tech

> Sent: Tuesday, May 8, 2018 

RE: Paste (ctrl-v) in textfield doesn't work with focusable listbox

2018-05-10 Thread Kristopher Merolla via 4D_Tech
Hi Piotr,

I created a simple form with an array based listbox and a text field and it 
seems like I have no trouble pasting into the text field, but perhaps I am 
doing something different than you are doing.

Also, I don't see any bugs related to your described behavior, but if you can 
reproduce the issue I would suggest you create a simple sample database, raise 
a Tech Support (TAOW) case, and attach it to the case along with the steps to 
reproduce the issue.  That way our tech support team can take a look.

Best Regards,
Kristopher




-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Piotr Chabot 
Stadhouders via 4D_Tech
Sent: Wednesday, May 9, 2018 8:22 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Piotr Chabot Stadhouders 
Subject: Paste (ctrl-v) in textfield doesn't work with focusable listbox

Hi,

4D v16R6
I have a form with a listbox and a textfield When the listbox has the property 
focusable set, pasting text into the text field via ctrl-v doesn't work (menu 
item paste DOES work) When I uncheck the focusable property pasting does work

Does anybody know about this behavior?

I need to set the listbox focusable because else I can not set columns 
enterable! Also something I don't quite understand

Gr,

Piotr

**
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
**
**
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: OPEN FORM WINDOWS

2018-05-10 Thread stardata.info via 4D_Tech

Hi Kristopher,

This is the window opened for do a query:

This after the query done and window closed, like you can see the title 
of the windows is upgraded with 6 record, but the selection of records 
is not correct displayed.


If i click on a row of output for, 4D upgrade the row clicked, if i 
click on one button up of form, the selection of record is finaly upgraded.


Using the option Plain form window this not happen, after closed the 
window the records selection is upgraded.


Thanks

/Ferdinando/


Il 08/05/2018 18:33, Kristopher Merolla ha scritto:


Hi Ferdinando,

So you are doing something like this?

On my output form I have two buttons, one opens a palette form window 
and the other a plain form window.


The “form” opened by these buttons has some fields and a button on it 
that will query the table for the ID matching the row clicked.


The window shows selection 1 of 10 but displays all the records:

After clicking something else, like a button on the output form or 
something like that, the form then updates displaying the selection 
(or if you click off the 4D window):


Did this work any differently for you in an older version of 4D?

The selection is actually changed, which can be seen at the top of the 
form, it just does not update the display on the form.  It seems like 
the display on the form is waiting on another event, like another 
click, to actually display the updated records.



Kristopher Merolla
Technical Support Engineer

Telephone : 
Email : kmero...@4d.com
Web :   



4D inc
95 S. Market Street, Suite #240
CA 95113San Jose- United States

Standard :  
Fax :   

Banner 

-Original Message-
From: stardata.info [mailto:stard...@stardata.info]
Sent: Tuesday, May 8, 2018 9:19 AM
To: Kristopher Merolla ; 4D iNug Technical 
<4d_tech@lists.4d.com>

Subject: Re: OPEN FORM WINDOWS

Hi Kristopher,

Below my answers.

Thanks

Ferdinando

Il 08/05/2018 17:46, Kristopher Merolla ha scritto:

> Hi Ferdinando,

>

> In 16.3 HF2 I put together a simple case, making a custom output 
form for a table with two buttons.  One button runs your first block 
of code to open a Palette window and the other a Plain window.  The 
"form" opened by the buttons on the output form has field variables, 
and I am able to modify them and when closing the window, the records 
are modified.


>

> Is this what you are trying to accomplish?

The issue is that using the option Palette form window, the list of 
records in the output form is not displayed correctly.


>

> If not, what is in your "form" (are there any other buttons, bits of 
code, etc) and what exactly do you mean by the "selection of the 
records are not upgraded in the output form"?  Are you trying to 
change the selection like a query or modify the records? Do you have 
any other code executing here?


I open the window for do a queries, when I close the window, the list 
of records are the same and are not upgraded. If i click on another 
button upper the form windows, i can see the new selection of records.


>

> Regards,

> Kristopher

>

>

>

> Kristopher Merolla

> Technical Support Engineer

>

> 4D Inc

> 95 S. Market Street, Suite #240

> CA 95113 San Jose

> United States

>

> Telephone :

> Standard :

> Fax :

> Email : kmero...@4d.com 

> Web :

>

> -Original Message-

> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of

> stardata.info via 4D_Tech

> Sent: Tuesday, May 8, 2018 6:55 AM

> To: 4d_tech@lists.4d.com 

> Cc: stardata.info >


> Subject: OPEN FORM WINDOWS

>

> Hi All,

>

> I work 4D V16 on windows.

> Using this code in one button of output form for doing a queries:

> $Win:=Open form window("form";Palette form window;Horizontally

> centered;Vertically centered;*)

> DIALOG("form")

> CLOSE WINDOW

> i notice that the selection of the records are not upgraded in the 
output form.


>

> If use the option Plain form window i not have the same issue.

> $Win:=Open form window("form";Plain form window;Horizontally

> centered;Vertically centered;*)

> DIALOG("form")

> CLOSE WINDOW

>

> Someone know the reason?

>

> Thanks

> Ferdinando

> **

> 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

> **

>



**
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:  

RE: OPEN FORM WINDOWS

2018-05-10 Thread Kristopher Merolla via 4D_Tech
Hi Ferdinando,

In 16.3 HF2 I put together a simple case, making a custom output form for a 
table with two buttons.  One button runs your first block of code to open a 
Palette window and the other a Plain window.  The "form" opened by the buttons 
on the output form has field variables, and I am able to modify them and when 
closing the window, the records are modified.

Is this what you are trying to accomplish?

If not, what is in your "form" (are there any other buttons, bits of code, etc) 
and what exactly do you mean by the "selection of the records are not upgraded 
in the output form"?  Are you trying to change the selection like a query or 
modify the records? Do you have any other code executing here?

Regards,
Kristopher




-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of stardata.info 
via 4D_Tech
Sent: Tuesday, May 8, 2018 6:55 AM
To: 4d_tech@lists.4d.com
Cc: stardata.info 
Subject: OPEN FORM WINDOWS

Hi All,

I work 4D V16 on windows.
Using this code in one button of output form for doing a queries:
$Win:=Open form window("form";Palette form window;Horizontally 
centered;Vertically centered;*)
DIALOG("form")
CLOSE WINDOW
i notice that the selection of the records are not upgraded in the output form.

If use the option Plain form window i not have the same issue.
$Win:=Open form window("form";Plain form window;Horizontally 
centered;Vertically centered;*)
DIALOG("form")
CLOSE WINDOW

Someone know the reason?

Thanks
Ferdinando
**
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
**
**
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: OPEN FORM WINDOWS

2018-05-10 Thread stardata.info via 4D_Tech

Hi Kristopher,

I already try with REDRAW WINDOW but noto work the same.

Using Plain form window the records selection is upgraded, but i must to 
use MAXIMIZE WINDOW command, because the option Plain form window cause 
a movement of the principal windows that is behind like you can see.





Thanks
Ferdinando

Il 08/05/2018 22:12, Kristopher Merolla ha scritto:


Hi Ferdinando,

This looks like a bug to me, I will get a bug report raised for the issue.

To get around it, you can add the REDRAW WINDOW command at the end, 
that should refresh the window after your query.


$Win:=*Open form window*("form";_Palette form window_;_Horizontally 
centered_;_Vertically centered_;*)


*DIALOG*("form")

*CLOSE WINDOW*

*REDRAW WINDOW*

Best Regards,

Kristopher


Kristopher Merolla
Technical Support Engineer

Telephone : 
Email : kmero...@4d.com
Web :   



4D inc
95 S. Market Street, Suite #240
CA 95113San Jose- United States

Standard :  
Fax :   

Banner 

*From:*stardata.info [mailto:stard...@stardata.info]
*Sent:* Tuesday, May 8, 2018 10:46 AM
*To:* Kristopher Merolla ; 4D iNug Technical 
<4d_tech@lists.4d.com>

*Subject:* Re: OPEN FORM WINDOWS

Hi Kristopher,

This is the window opened for do a query:

This after the query done and window closed, like you can see the 
title of the windows is upgraded with 6 record, but the selection of 
records is not correct displayed.


If i click on a row of output for, 4D upgrade the row clicked, if i 
click on one button up of form, the selection of record is finaly 
upgraded.


Using the option Plain form window this not happen, after closed the 
window the records selection is upgraded.


Thanks

/Ferdinando/

Il 08/05/2018 18:33, Kristopher Merolla ha scritto:

Hi Ferdinando,

So you are doing something like this?

On my output form I have two buttons, one opens a palette form
window and the other a plain form window.

The “form” opened by these buttons has some fields and a button on
it that will query the table for the ID matching the row clicked.

The window shows selection 1 of 10 but displays all the records:

After clicking something else, like a button on the output form or
something like that, the form then updates displaying the
selection (or if you click off the 4D window):

Did this work any differently for you in an older version of 4D?

The selection is actually changed, which can be seen at the top of
the form, it just does not update the display on the form.  It
seems like the display on the form is waiting on another event,
like another click, to actually display the updated records.



*Kristopher Merolla*

Technical Support Engineer

Telephone :



Email :



kmero...@4d.com 

Web :






*4D inc*

95 S. Market Street, Suite #240

CA 95113 San Jose - United States

Standard :



Fax :




Banner 

-Original Message-
From: stardata.info [mailto:stard...@stardata.info]
Sent: Tuesday, May 8, 2018 9:19 AM
To: Kristopher Merolla  ;
4D iNug Technical <4d_tech@lists.4d.com> 
Subject: Re: OPEN FORM WINDOWS

Hi Kristopher,

Below my answers.

Thanks

Ferdinando

Il 08/05/2018 17:46, Kristopher Merolla ha scritto:

> Hi Ferdinando,

>

> In 16.3 HF2 I put together a simple case, making a custom output
form for a table with two buttons.  One button runs your first
block of code to open a Palette window and the other a Plain
window.  The "form" opened by the buttons on the output form has
field variables, and I am able to modify them and when closing the
window, the records are modified.

>

> Is this what you are trying to accomplish?

The issue is that using the option Palette form window, the list
of records in the output form is not displayed correctly.

>

> If not, what is in your "form" (are there any other buttons,
bits of code, etc) and what exactly do you mean by the "selection
of the records are not upgraded in the output form"?  Are you
trying to change the selection like a query or modify the records?
Do you have any other code executing here?

I open the window for do a queries, when I close the window, the
list of records are the same and are not upgraded. If i click on
another button upper the form windows, i can see the new selection
of records.

>

> Regards,

> Kristopher

>

>

>

> Kristopher Merolla

> Technical Support Engineer

>

> 4D Inc

> 95 S. Market Street, Suite #240

> CA 95113 San Jose

> United States

>

> Telephone :

> Standard :

> Fax :

> Email : 

Re: v13+ LEP permision issues.

2018-05-10 Thread Chip Scheide via 4D_Tech
That is great ..
I have always understood On Err Call to be a separate process

Thanks for the clarification
Chip

On Thu, 10 May 2018 15:29:11 +, Keisuke Miyako via 4D_Tech wrote:
> perhaps my comments about logging was unwarranted.
> 
> but I think my main points stand:
> 
> 1. no, method called on error is not executed in another process.
> you might be confusing it with method called on *event*
> 
> 2. no, it is not necessary to use IP. use can pass and return process 
> variables.
> 
> e.g.
> 
> EE:="before"
> 
> ON ERR CALL("E")
> DOCUMENT TO BLOB("";$blob)
> ON ERR CALL("")
> 
> ALERT(EE)
> 
> 
> where method "E" is
> 
> EE:=EE+"."+Current method name+".after"
> 
> 2018/05/10 23:32、Chip Scheide 
> <4d_o...@pghrepository.org> のメール
> :
> Case of
> : (error=-54) | (error=-49) | (error=-46) | (error=-45) | (error=-44) |
> (error=-5000)
> <>x_Error_Call_Error:="File, folder or volume locked, or already open
> for writing."
> 
> 
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: v13+ LEP permision issues.

2018-05-10 Thread Keisuke Miyako via 4D_Tech
perhaps my comments about logging was unwarranted.

but I think my main points stand:

1. no, method called on error is not executed in another process.
you might be confusing it with method called on *event*

2. no, it is not necessary to use IP. use can pass and return process variables.

e.g.

EE:="before"

ON ERR CALL("E")
DOCUMENT TO BLOB("";$blob)
ON ERR CALL("")

ALERT(EE)


where method "E" is

EE:=EE+"."+Current method name+".after"

2018/05/10 23:32、Chip Scheide 
<4d_o...@pghrepository.org> のメール:
Case of
: (error=-54) | (error=-49) | (error=-46) | (error=-45) | (error=-44) |
(error=-5000)
<>x_Error_Call_Error:="File, folder or volume locked, or already open
for writing."



**
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: v13+ LEP permision issues.

2018-05-10 Thread Chip Scheide via 4D_Tech
Keisuke,
> isn't "Method called on error" executed in the same process as the 
> invoking method?
> 
> normally the code would only be interested in basic information such as OK,
> which changes the course of action (ignore, abort, retry).
> 
> even if more details were available,
> there is normally not much one can do on the spot.
> 
yes it probably is. However, I am not interested in what method is 
currently set to be invoked by On Err Call, I am interested in 
returning information FROM the method invoked by On Err Call - 
specifically - what error occurred.

So, in the below 2 lines of code I want to get information FROM 
'File_Error_Manager' detailing, as much as possible, what error(s) 
occurred.

ON Err Call("File_Error_Manager")
Open Document($Document)

The On error call method (File_Error_Manager) has something like this:

Case of
: (error=-54) | (error=-49) | (error=-46) | (error=-45) | (error=-44) | 
(error=-5000)
<>x_Error_Call_Error:="File, folder or volume locked, or already open 
for writing."
.
.
.
end case


As far as I am aware, when On Err Call invokes a method it runs in it's 
own process - separate from the process where the error actually 
occurred. Given this situation, there are limited ways in which to 
communicate the error information from the On Error Call process to the 
error generating process.  IP variables are a simple means of doing 
this.
The use of IP variables in an error method used by On Err Call and any 
process which, thru On Err Call usage,  uses these error methods 
becomes - thread unsafe.

Because of the way in which 4D manages file/disk access the only way to 
know that there was an error, and to get details of that/those errors, 
is to use On Err Call. 
Using LEP (for file manipulation) by passes this issue, as there is no 
need for On Err Call.

As I said, there are other reasons to use LEP for file manipulation, 
Thread safety is just one that I thought would be of interest to 
discuss. Speed is another, my experience so far, is that 4D's file 
manipulation functions are slower then the OS level functions.

As for alternate means of getting error information out of On Err Call, 
the only one that comes to mind would be to create a record in an 
'Error' table. Populate it with the error information, some sort of 
identifier (this might be an issue), and save it. 
Then in the process where an error *might* occur, query the table to 
determine *if* there was an error, and if there was, get the 
information from the record (and do whatever is appropriate), and 
delete the record.

Seems excessive, but I guess that would depend on how necessary it 
is/was to make a method thread safe.

Other means of getting error information out of the On Err Call 
process, and back to the error generating process are welcome.
:)

> 
> "Method called on error" can log (table or document) the date, time, 
> user, machine,
> error stack, error method, error formula, error line for later analysis.
> 
there is no indication that this is true according to the documentation 
for v13.  Maybe the function has been enhanced in later versions of 4D.

However, even if this is true, the need is to get error information 
during runtime to manage it.
In the above example, to know that the file was not able to be opened. 
Which in turn means that the action intended can not be done/completed, 
and make a decision about how to proceed. That decision maybe made in 
the same method in which the error occurred, or it may be passed back 
up the call chain; being able to analyze the issue later is not the 
intension/need.

Thanks
Chip

---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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
**