Discussion:
file too big to compile
(too old to reply)
Dan Anderson
2008-11-04 18:31:58 UTC
Permalink
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
--
Dan Anderson
UBI Processing Dept.
***@ubinc.com
800-444-4824 ext 101
Glenn Johansen
2008-11-04 20:55:20 UTC
Permalink
Are you sending paramaters to any functions that are very long in length?
Are there any very long lines of code?

Both of these could be the source of the problem.

- glenn
Post by Dan Anderson
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
--
Dan Anderson
UBI Processing Dept.
800-444-4824 ext 101
Robert Bravery
2008-11-05 05:16:53 UTC
Permalink
Mostlikely you have a line that exceeds the limit in length. THis would
nclude continuation characters.

Robert
Post by Dan Anderson
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
--
Dan Anderson
UBI Processing Dept.
800-444-4824 ext 101
---
avast! Antivirus: Inbound message clean.
Virus Database (VPS): 081104-0, 04/11/2008
Tested on: 05/11/2008 07:16:00 AM
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com
--
Web Development, Hosting, Design and Content Management Systems
http://www.integralwebsolutions.co.za



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 081104-0, 04/11/2008
Tested on: 05/11/2008 07:16:55 AM
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com
Geoff Wass [dBVIPS]
2008-11-05 05:24:38 UTC
Permalink
Post by Dan Anderson
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
Dan,

How big is the file you are trying to compile? Does it have an large
number of objects? Do you use ; to continue several lines into one long
command?
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada

.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Bob Newman
2008-11-07 18:18:37 UTC
Permalink
I ran into this problem when I used cretable.prg, IIRC. The total length of the the command, because of the many semicolons, was too long for Plus. Breaking it into a create section plus and add fields section solved the problem. In this case it was a bogus error message; it was a command line that was too long.
Post by Geoff Wass [dBVIPS]
Post by Dan Anderson
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
Dan,
How big is the file you are trying to compile? Does it have an large
number of objects? Do you use ; to continue several lines into one long
command?
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
John York
2008-11-08 00:25:12 UTC
Permalink
The number of spaces in the command line also affects the "too big to
compile" error - I reworked cretable to eliminate the extra spaces and
that helped on medium size tables

John
Post by Bob Newman
I ran into this problem when I used cretable.prg, IIRC. The total length of the the command, because of the many semicolons, was too long for Plus. Breaking it into a create section plus and add fields section solved the problem. In this case it was a bogus error message; it was a command line that was too long.
Post by Geoff Wass [dBVIPS]
Post by Dan Anderson
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
Dan,
How big is the file you are trying to compile? Does it have an large
number of objects? Do you use ; to continue several lines into one long
command?
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Dan Anderson
2008-11-24 14:39:57 UTC
Permalink
I do use the semicolon to break up one especially long text line. I am
generating an email that summarizes a group of certificates of insurance
which are attached. The catch is that the body of the email must be
developed using one long line. Would it see the line as too long if I break
it into a group of lines that are combined as one "cBody?" Here's the line
as it is right now.


cBody = "This is to confirm coverage"+iif(nPolicies>1, "s", "")+" bound on
your submission for '"+cFullName+":' ";
+CHR(13)+CHR(13)+"Effective date: "+
TRIM(cEffdate)+CHR(13)+CHR(13);
+iif(cPD="Y", "Physical Damage "+TRIM(cPDpolicynumber)+"
"+TRIM(cPDcarrier)+CHR(13),"");
+iif(nPolicies>1, +iif(cNT="Y", +"Non-Trucking Liability
"+TRIM(cNTpolicynumber) +" Occidental Fire and Casualty Co. of North
Carolina"+CHR(13), +"Cargo "+TRIM(cCGpolicynumber) +"
Penn-America Insurance Company" +CHR(13)),;
+"");
+iif(cPD="N",+iif(cNT="Y", +"Non-Trucking Liability
"+TRIM(cNTpolicynumber) +" Occidental Fire and Casualty Co. of North
Carolina"+CHR(13), +"Cargo "+TRIM(cCGpolicynumber) +"
Penn-America Insurance Company" +CHR(13)),;
+"");
+iif(nPolicies=3, +"Cargo "+TRIM(cCGpolicynumber)
+" Penn-America Insurance Company"+CHR(13), "" );
+CHR(13)+"The down payment, of $"+LTRIM(TRIM(cDownpayment))+
iif(nTotalFees>0, ", which includes the $50 installment fee","")+", will be
due from your agency on "+dDPduedate +".";
+CHR(13)+CHR(13)+"Your insured's next installment, of
$"+LTRIM(TRIM(cPayment))+", will be due on "+cDueDate +".";
+iif(cNT="Y",+CHR(13)+CHR(13)+"Because your client requested
non-trucking liability coverage we must have a copy "+chr(13)+"of the lease
agreement within 30 days.","");
+CHR(13)+CHR(13)+"If you are going to supply the MVR's they should
be in our office within 10 days.";
+CHR(13)+CHR(13)+"Please carefully examine your Certificate(s) of
Insurance to be certain all the information is accurate.";
+CHR(13)+"And, should you have any questions, never hesitate to
call.";
+CHR(13)+CHR(13)+"Thank you for your business!"+CHR(13);
+iif(UPPER(ID())="KELLIC", +CHR(13)+"Kelli Crone" ,
iif(UPPER(ID())="DAWNW", +CHR(13)+"Dawn Watt", iif(UPPER(ID())="TERESAJ",
+CHR(13)+"Teresa Jackson","")));
+CHR(13)+"United Brokers, Inc.";
+CHR(13)+"Phone: 800-444-4824"+ iif(UPPER(ID())="KELLIC"," Ext
123", iif(UPPER(ID())="DAWNW", " Ext 136", iif(UPPER(ID())="TERESAJ", " Ext.
106","")));
+CHR(13)+"Fax: 812-949-4015"
--
Dan Anderson
UBI Processing Dept.
***@ubinc.com
800-444-4824 ext 101
Post by Geoff Wass [dBVIPS]
Post by Dan Anderson
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
Dan,
How big is the file you are trying to compile? Does it have an large
number of objects? Do you use ; to continue several lines into one long
command?
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Mervyn Bick
2008-11-24 16:28:10 UTC
Permalink
Post by Dan Anderson
I do use the semicolon to break up one especially long text line. I am
generating an email that summarizes a group of certificates of insurance
which are attached. The catch is that the body of the email must be
developed using one long line. Would it see the line as too long if I break
it into a group of lines that are combined as one "cBody?" Here's the line
as it is right now.
cBody = "This is to confirm coverage"+iif(nPolicies>1, "s", "")+" bound on
your submission for '"+cFullName+":' ";
Instead of building cBody in one LONG string, build it manageable chunk by
manageable chunk. By all means use line break markers (;) to break up the
iif() condtructs but it may make the code more readable if you were to
change to if...else...endif constructs. I may not have got the breaks in
the iif() constructs in the correct places (and I didn't finish the whole
thing) but this whould give you enough to go on with.



cBody = "This is to confirm coverage"+iif(nPolicies>1, "s", "")
cBody += " bound on your submission for '"+cFullName+":' "
cBody += CHR(13)+CHR(13)+"Effective date: "+
TRIM(cEffdate)+CHR(13)+CHR(13)
cBody += iif(cPD="Y", "Physical Damage "+TRIM(cPDpolicynumber)+"
"+TRIM(cPDcarrier)+CHR(13),"")
cBody += iif(nPolicies>1, +iif(cNT="Y", +"Non-Trucking Liability
"+TRIM(cNTpolicynumber);
+" Occidental Fire and Casualty Co. of North Carolina"+CHR(13), ;
+"Cargo "+TRIM(cCGpolicynumber) +" Penn-America
Insurance Company" +CHR(13)),+"")
cBody += iif(cPD="N",+iif(cNT="Y", +"Non-Trucking Liability
"+TRIM(cNTpolicynumber);
+" Occidental Fire and Casualty Co. of North Carolina"+CHR(13),;
+"Cargo "+TRIM(cCGpolicynumber) +" Penn-America
Insurance Company" +CHR(13)),+"")
cBody += iif(nPolicies=3, +"Cargo
"+TRIM(cCGpolicynumber) +" Penn-America Insurance Company"+CHR(13), "" )
cBody +=CHR(13)+"The down payment, of $"+LTRIM(TRIM(cDownpayment))
cBody +=iif(nTotalFees>0, ", which includes the $50 installment
fee","")+", will be due from your agency on "+dDPduedate +".";
+CHR(13)+CHR(13)+"Your insured's next installment, of
$"+LTRIM(TRIM(cPayment))+", will be due on "+cDueDate +"." ........

Mervyn.
Robert Bravery
2008-11-24 17:21:07 UTC
Permalink
HI Dan,

Just by looking at this it certainly looks too long. Have you actually
counted the characters.
One way to get around this is tp break up the cBody assignment.
cBody = "One very long line with in dbase limits"
cBody+= "Another very long line"
cBody+= "Yet another very long line"
cBody+=" ... and so on..."

Robert
Post by Dan Anderson
I do use the semicolon to break up one especially long text line. I am
generating an email that summarizes a group of certificates of insurance
which are attached. The catch is that the body of the email must be
developed using one long line. Would it see the line as too long if I
break it into a group of lines that are combined as one "cBody?" Here's
the line as it is right now.
cBody = "This is to confirm coverage"+iif(nPolicies>1, "s", "")+" bound on
your submission for '"+cFullName+":' ";
+CHR(13)+CHR(13)+"Effective date: "+
TRIM(cEffdate)+CHR(13)+CHR(13);
+iif(cPD="Y", "Physical Damage "+TRIM(cPDpolicynumber)+"
"+TRIM(cPDcarrier)+CHR(13),"");
+iif(nPolicies>1, +iif(cNT="Y", +"Non-Trucking Liability
"+TRIM(cNTpolicynumber) +" Occidental Fire and Casualty Co. of North
Carolina"+CHR(13), +"Cargo "+TRIM(cCGpolicynumber) +"
Penn-America Insurance Company" +CHR(13)),;
+"");
+iif(cPD="N",+iif(cNT="Y", +"Non-Trucking Liability
"+TRIM(cNTpolicynumber) +" Occidental Fire and Casualty Co. of North
Carolina"+CHR(13), +"Cargo "+TRIM(cCGpolicynumber) +"
Penn-America Insurance Company" +CHR(13)),;
+"");
+iif(nPolicies=3, +"Cargo
"+TRIM(cCGpolicynumber) +" Penn-America Insurance Company"+CHR(13), "" );
+CHR(13)+"The down payment, of $"+LTRIM(TRIM(cDownpayment))+
iif(nTotalFees>0, ", which includes the $50 installment fee","")+", will
be due from your agency on "+dDPduedate +".";
+CHR(13)+CHR(13)+"Your insured's next installment, of
$"+LTRIM(TRIM(cPayment))+", will be due on "+cDueDate +".";
+iif(cNT="Y",+CHR(13)+CHR(13)+"Because your client requested
non-trucking liability coverage we must have a copy "+chr(13)+"of the
lease agreement within 30 days.","");
+CHR(13)+CHR(13)+"If you are going to supply the MVR's they should
be in our office within 10 days.";
+CHR(13)+CHR(13)+"Please carefully examine your Certificate(s) of
Insurance to be certain all the information is accurate.";
+CHR(13)+"And, should you have any questions, never hesitate to
call.";
+CHR(13)+CHR(13)+"Thank you for your business!"+CHR(13);
+iif(UPPER(ID())="KELLIC", +CHR(13)+"Kelli Crone" ,
iif(UPPER(ID())="DAWNW", +CHR(13)+"Dawn Watt", iif(UPPER(ID())="TERESAJ",
+CHR(13)+"Teresa Jackson","")));
+CHR(13)+"United Brokers, Inc.";
+CHR(13)+"Phone: 800-444-4824"+ iif(UPPER(ID())="KELLIC"," Ext
123", iif(UPPER(ID())="DAWNW", " Ext 136", iif(UPPER(ID())="TERESAJ", "
Ext. 106","")));
+CHR(13)+"Fax: 812-949-4015"
--
Dan Anderson
UBI Processing Dept.
800-444-4824 ext 101
Post by Geoff Wass [dBVIPS]
Post by Dan Anderson
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
Dan,
How big is the file you are trying to compile? Does it have an large
number of objects? Do you use ; to continue several lines into one long
command?
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
---
avast! Antivirus: Inbound message clean.
Virus Database (VPS): 081124-0, 24/11/2008
Tested on: 24/11/2008 07:17:45 PM
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com
--
Web Development, Hosting, Design and Content Management Systems
http://www.integralwebsolutions.co.za



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 081124-0, 24/11/2008
Tested on: 24/11/2008 07:21:09 PM
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com
Giovanni Marchioni
2008-11-07 20:35:49 UTC
Permalink
Post by Dan Anderson
dB+ I have a .wfm that won't run because it says that it is "too big to
compile." What is that about?
I found sometime same error; the problem was a missing ENDIF in the code.
Compiling the file I reached "error in line 645 project.cc".
Please check the code.

Giovanni Marchioni
Loading...