Re: v16R6 Crashing on Compile

2018-10-29 Thread Keith White via 4D_Tech
>What exactly constitutes a token in a method?  Is it every "word" in the code?


Tokens - I don't have a definitive list but I think 4D Commands, 4D Functions, 
Constants, Table names, Field Names.


Variable names are not tokenised as far as I know, which is why we got the 
problem after replacing some IP vars with constants.  Similarly it sounds like 
you got the problem after replacing some IP vars with "Storage".  Storage will 
be a token.


Best regards

Keith White
Synergist Express Ltd, UK.
4697775

**
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: v16R6 Crashing on Compile

2018-10-26 Thread Jim Hays via 4D_Tech
Paul,
Yes, we used Insider between 6.5 and 2004 or possibly 2004 and something
later, if that was possible.
There was old Form garbage from earlier versions.
With v16R6, not sure bout this

Hi Keith!
Other than this, I'm doing well.
This info seems right on track.  However we've only moved some "global
state" IP vars into Storage.
What exactly constitutes a token in a method?  Is it every "word" in the
code?  Variables, 4D Commands, constants, other grammar items?
I actually took an earlier compiling copy and duplicated our ugliest and
longest (900 lines including space & comments) method multiple times.
After about 40 or 50 duplications the crashing kicked in again.
v17 has been suggested, but we have upgraded 4D from 12 to 14 and didn't
get around to deploying, and then 12 to 16 and have just started to
deploy.  The cost of these and then for 17 is not trivial.

Chuck,
Tech Support had us compile on a fresh user profile - no difference.
Also turned off all anti-virus just to be sure.
Duplicating the structure probably isn't going to happen.  I already
started down that path, and ran into trouble trying to copy the forms.
(Maybe I just need to learn how to set the behavior when moving forms.
I'll ask 4D support when I'm on with them next time.)
Structure is 75 MB, about 200 forms.  7500 project methods.
Also, if dragging forms over, will they just bring any legacy stuff with
them?


As things stand now, the structure won't compile.  Haven't tried the
repair, compact and rinse cycle yet today.

Jim




On Fri, Oct 26, 2018 at 6:51 AM Chuck Miller via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> You can use sql to duplicate the structure use 4d code to export all of
> the methods and then import them. You would then have to open both
> structures and. Drag forms. I would stop an try compile with no forms then
> would move only some of the forms. Additionally I would try compile by
> creating another use on the machine. I would also relive all components and
> plug ins
>
> Regards
> Chuck
>
> Sent from my iPhone
>
> > On Oct 26, 2018, at 3:19 AM, Paul Lovejoy via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Many years ago... had to use 4D Insider and create a new structure and
> move everything. No longer an option. Copy/paste?
> >
> >
> > Paul
> >
> >
> >
> >> On 25 Oct 2018, at 23:39, Jeffrey Kain via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >>
> >> I'm remembering something about really long statements inside a Begin
> SQL or something like that.  It's been fixed but I don't remember when.  It
> was only if dot notation was either enabled or disabled.
> >>
> >> So maybe something like that?
> >>
> >>> On Oct 25, 2018, at 5:18 PM, Jim Hays via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >>>
> >>> Our app is crashing constantly when we try to compile.
> >>> Windows 10 desktops, Windows Server 2008 R2.
> >>> Structure is around 75 MB.  We have been deploying this app for nearly
> 20
> >>> years.
> >>>
> >>> For a while, we could Repair and Compact and then compile, but that
> isn't
> >>> working anymore.
> >>> We have a support case open with 4D, but no answers yet.
> >>
> >> **
> >> 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
> > **
>
> **
> 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: v16R6 Crashing on Compile

2018-10-26 Thread Chuck Miller via 4D_Tech
You can use sql to duplicate the structure use 4d code to export all of the 
methods and then import them. You would then have to open both structures and. 
Drag forms. I would stop an try compile with no forms then would move only some 
of the forms. Additionally I would try compile by creating another use on the 
machine. I would also relive all components and plug ins

Regards 
Chuck 

Sent from my iPhone

> On Oct 26, 2018, at 3:19 AM, Paul Lovejoy via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Many years ago... had to use 4D Insider and create a new structure and move 
> everything. No longer an option. Copy/paste?
> 
> 
> Paul
> 
> 
> 
>> On 25 Oct 2018, at 23:39, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> I'm remembering something about really long statements inside a Begin SQL or 
>> something like that.  It's been fixed but I don't remember when.  It was 
>> only if dot notation was either enabled or disabled.
>> 
>> So maybe something like that?
>> 
>>> On Oct 25, 2018, at 5:18 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> 
>>> wrote:
>>> 
>>> Our app is crashing constantly when we try to compile.
>>> Windows 10 desktops, Windows Server 2008 R2.
>>> Structure is around 75 MB.  We have been deploying this app for nearly 20
>>> years.
>>> 
>>> For a while, we could Repair and Compact and then compile, but that isn't
>>> working anymore.
>>> We have a support case open with 4D, but no answers yet.
>> 
>> **
>> 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
> **

**
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: v16R6 Crashing on Compile

2018-10-26 Thread Keith White via 4D_Tech
Hi Jim

Hope you are well.

The compiler crash with v16R6 is a bug.  Fixed only in v17 (ACI0098136).  This 
one is caused when there are too many tokens in a method.  In our case it 
started happening only on our development system after I had replaced a lot of 
IP variables with custom constants.

Of course you don't know which method(s) are causing it.  4D Tech Support may 
be able  to help you out in this regard if you send them your structure, though 
I think they do have to refer to engineering to establish the problem 
method(s).  Or upgrade to v17 (that's what we've done with our development 
system) ;-)

During the R6 beta there were a couple of compiler issues that did get fixed:-

ACI0097899 - Crashing bug on syntax check/compile
ACI0097931 - SQL line length too long would not syntax check/compile (but no 
crash).  Peter Hay and Tim Penner got to the root cause of it together and it 
was then logged and fixed.

Hope this helps.

Best regards

Keith White
Synergist Express Ltd, UK.
4697775

**
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: v16R6 Crashing on Compile

2018-10-26 Thread Paul Lovejoy via 4D_Tech
Many years ago... had to use 4D Insider and create a new structure and move 
everything. No longer an option. Copy/paste?


Paul



> On 25 Oct 2018, at 23:39, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I'm remembering something about really long statements inside a Begin SQL or 
> something like that.  It's been fixed but I don't remember when.  It was only 
> if dot notation was either enabled or disabled.
> 
> So maybe something like that?
> 
>> On Oct 25, 2018, at 5:18 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Our app is crashing constantly when we try to compile.
>> Windows 10 desktops, Windows Server 2008 R2.
>> Structure is around 75 MB.  We have been deploying this app for nearly 20
>> years.
>> 
>> For a while, we could Repair and Compact and then compile, but that isn't
>> working anymore.
>> We have a support case open with 4D, but no answers yet.
> 
> **
> 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: v16R6 Crashing on Compile

2018-10-25 Thread Jim Hays via 4D_Tech
We don't use much SQL at all, but I'll check.  Working with 4D support, we
found that removing some things from the old 4DX folders helps.
We still had Basic4D in there!!   That functionality isn't used much and
can be replaced with WSCRIPT.

In brief testing, it compiles about 4x then crashes, but can be compiled
again.

(Closing windows didn't make a difference)

And it also does compile better on v17, but we haven't given that a
rigorous test, nor do we have a deployment license.

Jim


On Thu, Oct 25, 2018 at 5:39 PM Jeffrey Kain via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I'm remembering something about really long statements inside a Begin SQL
> or something like that.  It's been fixed but I don't remember when.  It was
> only if dot notation was either enabled or disabled.
>
> So maybe something like that?
>
> > On Oct 25, 2018, at 5:18 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Our app is crashing constantly when we try to compile.
> > Windows 10 desktops, Windows Server 2008 R2.
> > Structure is around 75 MB.  We have been deploying this app for nearly 20
> > years.
> >
> > For a while, we could Repair and Compact and then compile, but that isn't
> > working anymore.
> > We have a support case open with 4D, but no answers yet.
>
> **
> 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: v16R6 Crashing on Compile

2018-10-25 Thread lists via 4D_Tech
I have the same issue.  I have found that I have to close all open windows in 
the structure to avoid the crash.

The same structure compiles without an issue in v17 without closing anything.

HTH,

Lahav

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Jim Hays via 4D_Tech
Sent: Thursday, October 25, 2018 3:19 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Jim Hays 
Subject: v16R6 Crashing on Compile

Our app is crashing constantly when we try to compile.
Windows 10 desktops, Windows Server 2008 R2.
Structure is around 75 MB.  We have been deploying this app for nearly 20 years.

For a while, we could Repair and Compact and then compile, but that isn't 
working anymore.
We have a support case open with 4D, but no answers yet.

Anyone having trouble like this?

Thanks,
Jim
**
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: v16R6 Crashing on Compile

2018-10-25 Thread Jeffrey Kain via 4D_Tech
I'm remembering something about really long statements inside a Begin SQL or 
something like that.  It's been fixed but I don't remember when.  It was only 
if dot notation was either enabled or disabled.

So maybe something like that?

> On Oct 25, 2018, at 5:18 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Our app is crashing constantly when we try to compile.
> Windows 10 desktops, Windows Server 2008 R2.
> Structure is around 75 MB.  We have been deploying this app for nearly 20
> years.
> 
> For a while, we could Repair and Compact and then compile, but that isn't
> working anymore.
> We have a support case open with 4D, but no answers yet.

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

v16R6 Crashing on Compile

2018-10-25 Thread Jim Hays via 4D_Tech
Our app is crashing constantly when we try to compile.
Windows 10 desktops, Windows Server 2008 R2.
Structure is around 75 MB.  We have been deploying this app for nearly 20
years.

For a while, we could Repair and Compact and then compile, but that isn't
working anymore.
We have a support case open with 4D, but no answers yet.

Anyone having trouble like this?

Thanks,
Jim
**
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
**