Re: Unable to Compile - Crash - looking for ideas - SOLVED

2017-08-22 Thread Koen Van Hooreweghe via 4D_Tech
Hi all,

Just a quick tip.

If you get tons of errors on local variables when ‘All variables are typed’ is 
turned on (like me, when I checked this in a 20 year old project), it might be 
impossible to continue normal development for a while. 4DPop might be the right 
tool to make the transition without sleepless nights.

There is a macro in the 4DPop Macros which uses cmd-$ and checks if all local 
variables are typed for the current method window (and also creates the 
compiler directives for you if you want). This way you can do the task of 
defining your local vars in your spare time while continuing further 
development and building your app with ‘All variables are typed’ off. And helps 
you to prevent creating new errors.

When nearly all methods are treated, you can turn the checkbox on, handle the 
remaining errors and live happily ever after…

Kind regards,
Koen

> Op 22 aug. 2017, om 03:50 heeft Alan Chan via 4D_Tech <4d_tech@lists.4d.com> 
> het volgende geschreven:
> 
> Yes, this is highly recommended. "All Variables are typed" is one of greatest 
> debug tool in 4D.
> 
> Alan Chan




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**
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:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unable to Compile - Crash - looking for ideas - SOLVED

2017-08-21 Thread Alan Chan via 4D_Tech
Yes, this is highly recommended. "All Variables are typed" is one of greatest 
debug tool in 4D.

Alan Chan

4D iNug Technical <4d_tech@lists.4d.com> writes:
>I would also recommend changing the settings from
>   Generate Typing
>to
>   All Variables are typed


**
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:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Unable to Compile - Crash - looking for ideas - SOLVED

2017-08-21 Thread Randy Engle via 4D_Tech
Hi Randy,

Yes, from here on, I've changed the "typing" to "All Variables are typed"

Thanks!

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Randy Jaynes 
via 4D_Tech
Sent: Monday, August 21, 2017 8:49 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Randy Jaynes <ra...@printpoint.com>
Subject: Re: Unable to Compile - Crash - looking for ideas - SOLVED

Randy,

I would also recommend changing the settings from
Generate Typing
to
All Variables are typed

This gives you control over the typing of your variables, and the line you 
point out would have kicked out a compiler error about the unknown ‘variable1’ 
in your line of code.

Randy

--
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com <http://printpoint.com/> • 845.687.3741 • PrintPoint, Inc 
• 57 Ludlow Lane • Palisades, NY 10964 





> On Aug 21, 2017, at 11:42 AM, Randy Engle via 4D_Tech <4d_tech@lists.4d.com 
> <mailto:4d_tech@lists.4d.com>> wrote:
> 
> Hi Jody,
> 
> I went through all of my methods that I'd changed in the last 3 days 
> (fortunately, I commented changes with a datestamp!)
> 
> About 100 methods.
> Looked at each line of code
> 
> FINALLY found the culprit
> 
> Method_Something(->variable1;"something else")
> 
> Where in the above line, the "1" at the end of the variable was a mistake.
> 
> So this faux variable was not typed at all.
> 
> Syntax Check, Generate Typing, Compiler didn't trap the error.
> 4D just quit.


**
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:  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: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unable to Compile - Crash - looking for ideas - SOLVED

2017-08-21 Thread Randy Jaynes via 4D_Tech
Randy,

I would also recommend changing the settings from
Generate Typing
to
All Variables are typed

This gives you control over the typing of your variables, and the line you 
point out would have kicked out a compiler error about the unknown ‘variable1’ 
in your line of code.

Randy

--
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com  • 845.687.3741 • PrintPoint, Inc 
• 57 Ludlow Lane • Palisades, NY 10964 





> On Aug 21, 2017, at 11:42 AM, Randy Engle via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> Hi Jody,
> 
> I went through all of my methods that I'd changed in the last 3 days 
> (fortunately, I commented changes with a datestamp!)
> 
> About 100 methods.
> Looked at each line of code 
> 
> FINALLY found the culprit
> 
> Method_Something(->variable1;"something else")
> 
> Where in the above line, the "1" at the end of the variable was a mistake.
> 
> So this faux variable was not typed at all.
> 
> Syntax Check, Generate Typing, Compiler didn't trap the error.
> 4D just quit.


**
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:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unable to Compile - Crash - looking for ideas - SOLVED

2017-08-21 Thread Two Way Communications via 4D_Tech
Hi Randy,

Hope all is well with you.

It seems strange to me that 4D didn’t report this when compiling… I would 
expect something like ‘variable not found’ or ‘pointer to unknown variable’…

What version of 4D do you use?

Regards,

Rudy Mortier
Two Way Communications bvba  -



> On 21 Aug 2017, at 17:42, Randy Engle via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Jody,
> 
> I went through all of my methods that I'd changed in the last 3 days 
> (fortunately, I commented changes with a datestamp!)
> 
> About 100 methods.
> Looked at each line of code 
> 
> FINALLY found the culprit
> 
> Method_Something(->variable1;"something else")
> 
> Where in the above line, the "1" at the end of the variable was a mistake.
> 
> So this faux variable was not typed at all.
> 
> Syntax Check, Generate Typing, Compiler didn't trap the error.
> 4D just quit.
> 
> Took me about 3 hours of sleuthing...
> 
> Compile often!!!  
> 
> Randy Engle, Director
> XC2 Software LLC – XC2LIVE!
> 
> 
> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Jody Bevan 
> via 4D_Tech
> Sent: Monday, August 21, 2017 6:06 AM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Jody Bevan <jody.be...@gmail.com>
> Subject: Re: Unable to Compile - Crash - looking for ideas
> 
> Randy:
> 
> Keep us posted. That is a scary one.
> 
> 
> Jody Bevan
> ARGUS Productions Inc.
> Developer
> 
> Argus Productions Inc. <https://www.facebook.com/ArgusProductions/>
> 
> 
> 
> 
> **
> 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:  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: http://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: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Unable to Compile - Crash - looking for ideas - SOLVED

2017-08-21 Thread Randy Engle via 4D_Tech
Hi Jody,

I went through all of my methods that I'd changed in the last 3 days 
(fortunately, I commented changes with a datestamp!)

About 100 methods.
Looked at each line of code 

FINALLY found the culprit

Method_Something(->variable1;"something else")

Where in the above line, the "1" at the end of the variable was a mistake.

So this faux variable was not typed at all.

Syntax Check, Generate Typing, Compiler didn't trap the error.
4D just quit.

Took me about 3 hours of sleuthing...

Compile often!!!  

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Jody Bevan via 
4D_Tech
Sent: Monday, August 21, 2017 6:06 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Jody Bevan <jody.be...@gmail.com>
Subject: Re: Unable to Compile - Crash - looking for ideas

Randy:

Keep us posted. That is a scary one.


Jody Bevan
ARGUS Productions Inc.
Developer

Argus Productions Inc. <https://www.facebook.com/ArgusProductions/>




**
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:  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: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unable to Compile - Crash - looking for ideas

2017-08-21 Thread Jody Bevan via 4D_Tech
Randy:

Keep us posted. That is a scary one.


Jody Bevan
ARGUS Productions Inc.
Developer

Argus Productions Inc. 




**
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:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Unable to Compile - Crash - looking for ideas - SOLVED

2017-08-20 Thread Randy Engle via 4D_Tech
Thanks to Miyako and Jeff for chiming in.

Found a misnamed variable.
We preventing any compilation task.

Disaster averted.

Whew!

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


**
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:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Unable to Compile - Crash - looking for ideas

2017-08-20 Thread Randy Engle via 4D_Tech
Jeff,

Thanks, will try!

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Jeffrey Kain 
via 4D_Tech
Sent: Sunday, August 20, 2017 5:23 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Jeffrey Kain <jeffrey.k...@gmail.com>
Subject: Re: Unable to Compile - Crash - looking for ideas

Change your compiler options? Maybe it will flag an error.

Also maybe trash your .4DIndy file



**
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:  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: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Unable to Compile - Crash - looking for ideas

2017-08-20 Thread Randy Engle via 4D_Tech
Hi Miyako

Thanks for the tip
Will try!

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Keisuke Miyako 
via 4D_Tech
Sent: Sunday, August 20, 2017 5:36 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Keisuke Miyako <keisuke.miy...@4d.com>
Subject: Re: Unable to Compile - Crash - looking for ideas

maybe you could run METHOD GET CODE on all methods just to see if all methods 
are accessible.
if it really comes down to that, I guess you could run METHOD SET CODE on all 
methods too.

or, you could trash (helps if the trash is empty) some methods to exclude them 
from the compiler.
compilation would likely fail due to missing methods, but at least it should be 
able to complete its task.
then you can restore those methods you hid in the trash.

> 2017/08/21 9:21、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール:
> Any great ideas about how to find this elusive error?



**
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:  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: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unable to Compile - Crash - looking for ideas

2017-08-20 Thread Keisuke Miyako via 4D_Tech
maybe you could run METHOD GET CODE on all methods just to see if all methods 
are accessible.
if it really comes down to that, I guess you could run METHOD SET CODE on all 
methods too.

or, you could trash (helps if the trash is empty) some methods to exclude them 
from the compiler.
compilation would likely fail due to missing methods, but at least it should be 
able to complete its task.
then you can restore those methods you hid in the trash.

> 2017/08/21 9:21、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール:
> Any great ideas about how to find this elusive error?



**
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:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Unable to Compile - Crash - looking for ideas

2017-08-20 Thread Jeffrey Kain via 4D_Tech
Change your compiler options? Maybe it will flag an error.

Also maybe trash your .4DIndy file



**
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:  mailto:4d_tech-unsubscr...@lists.4d.com
**