Re: 4D V15 crash

2019-05-03 Thread John DeSoi via 4D_Tech
Look at the crash log (should be in ~/Library/Logs/DiagnosticReports). It often 
gives helpful clues about what is causing the crash.


John DeSoi, Ph.D.


> On May 3, 2019, at 8:11 PM, Robert McKeever via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> My client (4 time zones away), had been running the single user compiled and 
> merged app under windows. Then he purchased a new Mac. It is running 10.14.3, 
> I’m running 10.14.4. I have moved the appropriate mac app files to his 
> machine, along with the datafile and index file from his PC.
> 
> 4D crashes on startup.
> 
> Then I had him add a printer. Tried again. No  luck.

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

4D V15 crash - further thoughts

2019-05-03 Thread Robert McKeever via 4D_Tech
Am I trapped in some security hole? Sandbox?

> On May 3, 2019, at 6:49 PM, Robert McKeever via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> So, I set the compiled/merged app up here. Runs fine. I even downloaded the 
> merged app from our FTP in case a new plug-in might be bothering it.
> 
> No such luck.
> 
>> On May 3, 2019, at 6:11 PM, Robert McKeever via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> My client (4 time zones away), had been running the single user compiled and 
>> merged app under windows. Then he purchased a new Mac. It is running 
>> 10.14.3, I’m running 10.14.4. I have moved the appropriate mac app files to 
>> his machine, along with the datafile and index file from his PC.
>> 
>> 4D crashes on startup.
>> 
>> Then I had him add a printer. Tried again. No  luck.
>> 
>> Any ideas?
>> _
>> Bob McKeever  http://www.mswl.com 
>> McKeever's Software Wizardry
>> Port Coquitlam, B.C.
>> bobmckee...@mac.com
>> 
>> 
>> 
>> 
>> **
>> 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
>> **
> 
> _
> Bob McKeever  http://www.mswl.com 
> McKeever's Software Wizardry
> Port Coquitlam, B.C.
> bobmckee...@mac.com
> 
> 
> 
> 
> **
> 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
> **

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




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

4D V15 crash - further info

2019-05-03 Thread Robert McKeever via 4D_Tech
So, I set the compiled/merged app up here. Runs fine. I even downloaded the 
merged app from our FTP in case a new plug-in might be bothering it.

No such luck.

> On May 3, 2019, at 6:11 PM, Robert McKeever via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> My client (4 time zones away), had been running the single user compiled and 
> merged app under windows. Then he purchased a new Mac. It is running 10.14.3, 
> I’m running 10.14.4. I have moved the appropriate mac app files to his 
> machine, along with the datafile and index file from his PC.
> 
> 4D crashes on startup.
> 
> Then I had him add a printer. Tried again. No  luck.
> 
> Any ideas?
> _
> Bob McKeever  http://www.mswl.com 
> McKeever's Software Wizardry
> Port Coquitlam, B.C.
> bobmckee...@mac.com
> 
> 
> 
> 
> **
> 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
> **

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




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

4D V15 crash

2019-05-03 Thread Robert McKeever via 4D_Tech
My client (4 time zones away), had been running the single user compiled and 
merged app under windows. Then he purchased a new Mac. It is running 10.14.3, 
I’m running 10.14.4. I have moved the appropriate mac app files to his machine, 
along with the datafile and index file from his PC.

4D crashes on startup.

Then I had him add a printer. Tried again. No  luck.

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




**
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: Re(2): Window reverse layering issues

2019-05-03 Thread Chip Scheide via 4D_Tech
if the user clicks on it to bring it forward it has to have received 
the click, and it should generate either or both outside call, activate.

Chip

On Fri, 3 May 2019 11:48:52 -0700, Don Lapin wrote:
> Hi Chip,
> 
> Does the incorrectly-layered window (the type 8 in this case, 
> supposed to be in back of the modal) receive events? I haven't tried 
> that yet.
> 
> Thanks,
> Don
> 
> 
>> how about...
>> a bit clunky - but should work
>> 
>> when you open the modal dialog on top of the non modal window, you grab 
>> the modal window's window reference.
>> 
>> then in the form event of the non-modal (I presume larger window)
>> during either On OUTSIDE CALL and/or ON ACTIVATE:
>> Hide Window()
>> Show window()
>> 
>> You have to issue Hide Window, otherwise Show Window does nothing.
>> This will bring the modal window to the front, removing the double 
>> square cursor
>> 
>> BTW - the user can also use  to swap window positions if one 
>> gets hidden.
>> 
>> Side Note: this can be avoided on a Mac by using window type 34 (sheet 
>> window) then the dialog shows up as a 'pop down' window and is part of 
>> the main window.
>> 
>> Chip
>> 
>> On Thu, 2 May 2019 15:59:09 -0700, Don Lapin via 4D_Tech wrote:
>>> Having a couple of problems with window layering and wondered about 
>>> what other developers do as workarounds.
>>> 
>>> 1. A 4D application has two processes, each with windows being shown. 
>>> One process has two windows: a semi-modal dialog on top of a Type 8 
>>> non-modal. User is over in another (windowed) process, and clicks 
>>> back onto the wrong window of the first process (the Type 8 instead 
>>> of the semi-modal)...and so gets the double-square cursor. The user 
>>> is not familiar with 4D per se and therefore doesn't know about 
>>> [Ctrl]-Z.
>>> 
>>> 2. The same situation as #1, but the user is in an external 
>>> application like Chrome. Instead of using [Alt]-[Tab] to return to 
>>> 4d, the user clicks with the mouse, and doesn't click on the 
>>> frontmost window.
>>> 
>>> Anybody?
>>> 
>>> Thanks,
>>> Don
>>> 
>>> **
>>> 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
>>> **
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing 
> 
> 
> 
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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(2): Window reverse layering issues

2019-05-03 Thread Don Lapin via 4D_Tech
Hi Chip,

Does the incorrectly-layered window (the type 8 in this case, supposed to be in 
back of the modal) receive events? I haven't tried that yet.

Thanks,
Don


>how about...
>a bit clunky - but should work
>
>when you open the modal dialog on top of the non modal window, you grab 
>the modal window's window reference.
>
>then in the form event of the non-modal (I presume larger window)
>during either On OUTSIDE CALL and/or ON ACTIVATE:
>Hide Window()
>Show window()
>
>You have to issue Hide Window, otherwise Show Window does nothing.
>This will bring the modal window to the front, removing the double 
>square cursor
>
>BTW - the user can also use  to swap window positions if one 
>gets hidden.
>
>Side Note: this can be avoided on a Mac by using window type 34 (sheet 
>window) then the dialog shows up as a 'pop down' window and is part of 
>the main window.
>
>Chip
>
>On Thu, 2 May 2019 15:59:09 -0700, Don Lapin via 4D_Tech wrote:
>> Having a couple of problems with window layering and wondered about 
>> what other developers do as workarounds.
>> 
>> 1. A 4D application has two processes, each with windows being shown. 
>> One process has two windows: a semi-modal dialog on top of a Type 8 
>> non-modal. User is over in another (windowed) process, and clicks 
>> back onto the wrong window of the first process (the Type 8 instead 
>> of the semi-modal)...and so gets the double-square cursor. The user 
>> is not familiar with 4D per se and therefore doesn't know about 
>> [Ctrl]-Z.
>> 
>> 2. The same situation as #1, but the user is in an external 
>> application like Chrome. Instead of using [Alt]-[Tab] to return to 
>> 4d, the user clicks with the mouse, and doesn't click on the 
>> frontmost window.
>> 
>> Anybody?
>> 
>> Thanks,
>> Don
>> 
>> **
>> 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
>> **
>---
>Gas is for washing parts
>Alcohol is for drinkin'
>Nitromethane is for racing 


**
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: 4D 17.1 network issues

2019-05-03 Thread John DeSoi via 4D_Tech
I set the WiFi to "Inactive" using the small popup at the bottom of the list 
and rebooted the computer. That removed it from the ifconfig list and the 
server no longer shows the self assigned IP.

I suspect the 4D 17 networking issues are related to computer sleep and/or the 
new network layer implementation of putting connections to sleep on the server 
after an inactivity timeout (the default is 20 seconds). I tested two changes 
over the past week: 

- Prevent the computer from sleeping when 4D Client is running.

- Disable the connection inactivity timeout - SET DATABASE PARAMETER(Idle 
connections timeout;0).

The logs showed only one client session that was aborted. I also ran a client 
test for over a week that implemented delays on both the client and server side 
ranging from a minute to 2 hours. No issues.

I had previously tried setting Idle connections timeout to 5 minutes. That did 
not help, there were still aborted connections.

If this is not a 4D Server problem, I'm not sure what else could be done to fix 
it. There were no issues like this with 4D 16.4. This is a single switch 
network, no routers are involved. The switch is about 6 months old and has no 
configurable settings.


John DeSoi, Ph.D.


> On Apr 24, 2019, at 2:09 PM, Charles Miller via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> If it shows as active, that may be part of the problem. I found many
> moons ago similar issues when one of my customers had new server with
> to NIC cards. It seems what happens is that client connects to 1,
> inactive for period of time, goes back and tries using 2, crash just
> as you are having. There used to be terminal command to combine two
> NICs into one on a MAC. Have you tried restarting the machine. You
> should not have a real IP on ethernet connection and self assigned on
> wifi. Something is not adding up
> 
> Regards
> Chuck
> 
> On Wed, Apr 24, 2019 at 12:28 PM Peter Bozek via 4D_Tech
> <4d_tech@lists.4d.com> wrote:
>> 
>> On Wed, Apr 24, 2019 at 4:06 PM John DeSoi via 4D_Tech <4d_tech@lists.4d.com>
>> wrote:
>> 
>>> No, just Ethernet is enabled. WiFi and the other connection types are not
>>> connected (red dot). But that just helped me answer the question. If I
>>> disable WiFi on my laptop, the server shows a 169.254.X.X link-local
>>> address. I wonder why and if that could be a source of problems.
>>> 
>>> It shows a red dot, "not connected", but it is active according to
>>> ifconfig:
>>> 
>>> en10: flags=8863 mtu 1500
>>>ether a6:e9:75:40:77:fa
>>>inet6 fe80::10be:87e1:3ea2:51c7%en10 prefixlen 64 secured scopeid
>>> 0x17
>>>inet 169.254.132.126 netmask 0x broadcast 169.254.255.255
>>>nd6 options=201
>>>media: autoselect (100baseTX )
>>>status: active
>>> 
>>> 
> 

**
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: Window reverse layering issues

2019-05-03 Thread Chip Scheide via 4D_Tech
how about...
a bit clunky - but should work

when you open the modal dialog on top of the non modal window, you grab 
the modal window's window reference.

then in the form event of the non-modal (I presume larger window)
during either On OUTSIDE CALL and/or ON ACTIVATE:
Hide Window()
Show window()

You have to issue Hide Window, otherwise Show Window does nothing.
This will bring the modal window to the front, removing the double 
square cursor

BTW - the user can also use  to swap window positions if one 
gets hidden.

Side Note: this can be avoided on a Mac by using window type 34 (sheet 
window) then the dialog shows up as a 'pop down' window and is part of 
the main window.

Chip

On Thu, 2 May 2019 15:59:09 -0700, Don Lapin via 4D_Tech wrote:
> Having a couple of problems with window layering and wondered about 
> what other developers do as workarounds.
> 
> 1. A 4D application has two processes, each with windows being shown. 
> One process has two windows: a semi-modal dialog on top of a Type 8 
> non-modal. User is over in another (windowed) process, and clicks 
> back onto the wrong window of the first process (the Type 8 instead 
> of the semi-modal)...and so gets the double-square cursor. The user 
> is not familiar with 4D per se and therefore doesn't know about 
> [Ctrl]-Z.
> 
> 2. The same situation as #1, but the user is in an external 
> application like Chrome. Instead of using [Alt]-[Tab] to return to 
> 4d, the user clicks with the mouse, and doesn't click on the 
> frontmost window.
> 
> Anybody?
> 
> Thanks,
> Don
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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(2): Window reverse layering issues

2019-05-03 Thread Don Lapin via 4D_Tech
Hi Steve,

Right now I do this, which works within the same process, but not coming from 
another process and clicking on the wrong window. Where would I fold in the 
process ID?

Thanks,
Don

case of

: (Form event=On Deactivate) & (bCnDlg=0) & (bOKdlg=0) & (bPrint=0) & 
(bMyCnfmOption=0) 

If (Current process=Frontmost process) 
  BRING TO FRONT(Current process)
End if 

end case


-

>Don,
>
>For situation #1, simply put code in the "On Deactivate" form event and
>make the window come back to the front.  Be sure to get the Process ID
>so you know to only activate this logic when the user is physically in
>the process.
>
>Best,
>
>
>Steve
>
>
>-Original Message-
>From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Don Lapin via
>4D_Tech
>Sent: Thursday, May 2, 2019 5:59 PM
>To: 4D Tech Mailing List <4d_tech@lists.4D.com>
>Cc: Don Lapin 
>Subject: Window reverse layering issues
>
>Having a couple of problems with window layering and wondered about what
>other developers do as workarounds.
>
>1. A 4D application has two processes, each with windows being shown.
>One process has two windows: a semi-modal dialog on top of a Type 8 non-
>modal. User is over in another (windowed) process, and clicks back onto
>the wrong window of the first process (the Type 8 instead of the semi-
>modal)...and so gets the double-square cursor. The user is not familiar
>with 4D per se and therefore doesn't know about [Ctrl]-Z.
>
>2. The same situation as #1, but the user is in an external application
>like Chrome. Instead of using [Alt]-[Tab] to return to 4d, the user
>clicks with the mouse, and doesn't click on the frontmost window.
>
>Anybody?
>
>Thanks,
>Don
>

>


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