Re: v15 - what code runs before On Startup?

2019-10-02 Thread Chuck Miller via 4D_Tech
Hi chip

This is what I would do I would create a new component. I would open old 
component with problem and move half of the methods in. Try and run with that 
if it works I would quit and move half the remaining methods. Continue to do 
this until you find the offending one

Regards 

Chuck

Sent from my iPhone

> On Sep 30, 2019, at 5:58 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have a component which I am trying to debug. The host is interpreted, 
> stand alone.
> 
> When the component is compiled and built the host starts, but of course 
> I can not trace the code in the component - from which I am getting an 
> error message.
> 
> When I swap in the interpreted version of the component, during 
> database startup I get an error not enough memory (obviously stuck in a 
> loop). 
> 
> However, currently the very first line of code in the host ON STARTUP 
> is TRACE.
> The not enough memory error is presented BEFORE the trace is hit.
> 
> The ON STARTUP of the component is empty (no code).
> 
> What code could be running?
> 
> Thanks
> Chip
> ---
> 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
> **

**
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: v15 - what code runs before On Startup?

2019-10-02 Thread Chip Scheide via 4D_Tech
That occurred to me...
there are no startup method specified for any user.
To insure this - for the user I am logging into the system with, I 
cleared (delete key x ???) the startup method field

Chip

On Wed, 2 Oct 2019 14:54:37 +, Keisuke Miyako via 4D_Tech wrote:
> also there can be per-user startup methods defined (see Toolbox, Users)
> 
>> 2019/10/02 23:38、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>の
>> メール:
>> 
>> deprecated in recent versions,
>> but a project method named "startup" or "debut" is reserved (v3 
>> startup procedure)
>> in legacy databases.
> 
> 
> 
> 
> **
> 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: v15 - what code runs before On Startup?

2019-10-02 Thread Chip Scheide via 4D_Tech
I did not think so - but I checked...
There is no method 'Startup', although there are methods in both host 
and component which contain the word 'Startup';
ex: strt_SingleUser_Client_Startup

There are no methods in either host of component which are or contain 
'debut'

Chip



On Wed, 2 Oct 2019 14:38:33 +, Keisuke Miyako via 4D_Tech wrote:
> deprecated in recent versions,
> but a project method named "startup" or "debut" is reserved (v3 
> startup procedure)
> in legacy databases.
> 
> 
> 
> 
> **
> 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: v15 - what code runs before On Startup?

2019-10-02 Thread Keisuke Miyako via 4D_Tech
also there can be per-user startup methods defined (see Toolbox, Users)

> 2019/10/02 23:38、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール:
>
> deprecated in recent versions,
> but a project method named "startup" or "debut" is reserved (v3 startup 
> procedure)
> in legacy databases.




**
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: v15 - what code runs before On Startup?

2019-10-02 Thread Keisuke Miyako via 4D_Tech
deprecated in recent versions,
but a project method named "startup" or "debut" is reserved (v3 startup 
procedure)
in legacy databases.




**
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: v15 - what code runs before On Startup?

2019-10-01 Thread Chip Scheide via 4D_Tech
This is stand alone...
I cleaned up the 4D folder in application support.

I placed a TRACE into a method which is called in every trigger in case 
a trigger was being called for some reason... no trace occurred

still getting stack space error - this occurs almost immediately after 
the 4D logo/splash screen opens.

Chip
On Tue, 01 Oct 2019 17:42:20 +0100, Douglas Cryer via 4D_Tech wrote:
> Chip,
> 
> Re: 
> Component interpreted: the alert is never encountered before the Out 
> of stack space issue.
> Component compiled (built): the alert is displayed, and the host 
> starts normally
> 
> That is strange is it a component Cache issue?  Are you running 
> client server or standalone.  I know that in the past I have had 
> issues when switching between compiled and uncompiled components that 
> were solved by clearing the component cache from the server.
> 
> Regards,  Dougie
> 
> 
> telekinetix Limited- J. Douglas Cryer
> Phone : 01234 761759  Mobile : 07973 675 218
> 2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
> Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.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
> **
---
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: v15 - what code runs before On Startup?

2019-10-01 Thread Douglas Cryer via 4D_Tech
Chip,

Re: 
Component interpreted: the alert is never encountered before the Out of stack 
space issue.
Component compiled (built): the alert is displayed, and the host starts normally

That is strange is it a component Cache issue?  Are you running client server 
or standalone.  I know that in the past I have had issues when switching 
between compiled and uncompiled components that were solved by clearing the 
component cache from the server.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.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: v15 - what code runs before On Startup?

2019-10-01 Thread Chip Scheide via 4D_Tech
> If you have the database setting on the host as: 'Execute "On Host 
> Database Event" method of the components' set then any component 
> might be running something.
This was NOT on.
I turned it on, and added TRACE and an Alert, in the component.

Component interpreted: the alert is never encountered before the Out of 
stack space issue.
Component compiled (built): the alert is displayed, and the host starts 
normally

Chip

---
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: v15 - what code runs before On Startup?

2019-10-01 Thread Douglas Cryer via 4D_Tech
Chip,

Do you have anything in the "On Host Database Event" method in the component?

If you have the database setting on the host as: 'Execute "On Host Database 
Event" method of the components' set then any component might be running 
something.

Re: The ON STARTUP of the component is empty (no code).
As far as I know this method would not run anyway in a component.  I never use 
it so I am not sure.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.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
**

v15 - what code runs before On Startup?

2019-09-30 Thread Chip Scheide via 4D_Tech
I have a component which I am trying to debug. The host is interpreted, 
stand alone.

When the component is compiled and built the host starts, but of course 
I can not trace the code in the component - from which I am getting an 
error message.

When I swap in the interpreted version of the component, during 
database startup I get an error not enough memory (obviously stuck in a 
loop). 

However, currently the very first line of code in the host ON STARTUP 
is TRACE.
The not enough memory error is presented BEFORE the trace is hit.

The ON STARTUP of the component is empty (no code).

What code could be running?

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