(CFMX) Array Max size?

2003-03-24 Thread Michael Dinowitz
I've got a 2 dimensional array (well, it's actually someone else's) and when I
run it I get this error message:
The system has attempted to use an undefined value, which usually indicates a
programming error, either in your code or some system code.
Null Pointers are another name for undefined values.

I've traced the problem to the array itself. When there are 89 entries in it, no
problem. Once a 90th entry is added, it chokes.
The 89th entry looks like this (in CFSCRIPT):
 langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
(Bolivia);
If I cut out every entry over 89, no problem. If I add a 90th entry, even as a
duplicate of 89, I get the error.
Can someone else please test out their CFMX system for this? Just a simple 2
dimensional array with 3 items per row. See what the max is for you. I'm using
UD3.
Thanks

Michael Dinowitz
Master of the House of Fusion
http://www.houseoffusion.com

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: (CFMX) Array Max size?

2003-03-24 Thread webguy
cfset myarray = arraynew(2) /

cfloop from=1 to=1500 index=i 

cfset myarray[i][1] = index#i# /
cfset myarray[i][2] = test xx /
cfset myarray[i][3] = text xx /

/cfloop

this works fine for me.

WG

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 13:11
To: CF-Talk
Subject: (CFMX) Array Max size?


I've got a 2 dimensional array (well, it's actually someone else's) and when
I
run it I get this error message:
The system has attempted to use an undefined value, which usually indicates
a
programming error, either in your code or some system code.
Null Pointers are another name for undefined values.

I've traced the problem to the array itself. When there are 89 entries in
it, no
problem. Once a 90th entry is added, it chokes.
The 89th entry looks like this (in CFSCRIPT):
 langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
(Bolivia);
If I cut out every entry over 89, no problem. If I add a 90th entry, even as
a
duplicate of 89, I get the error.
Can someone else please test out their CFMX system for this? Just a simple 2
dimensional array with 3 items per row. See what the max is for you. I'm
using
UD3.
Thanks

Michael Dinowitz
Master of the House of Fusion
http://www.houseoffusion.com


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: (CFMX) Array Max size?

2003-03-24 Thread webguy
actually this does too

cfset myarray = arraynew(2) /
cfloop from=1 to=15 index=i 

cfset myarray[i][1] = index#i# /
cfset myarray[i][2] = test xx /
cfset myarray[i][3] = text xx /

/cfloop

this works fine for me.

WG

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 13:11
To: CF-Talk
Subject: (CFMX) Array Max size?


I've got a 2 dimensional array (well, it's actually someone else's) and when
I
run it I get this error message:
The system has attempted to use an undefined value, which usually indicates
a
programming error, either in your code or some system code.
Null Pointers are another name for undefined values.

I've traced the problem to the array itself. When there are 89 entries in
it, no
problem. Once a 90th entry is added, it chokes.
The 89th entry looks like this (in CFSCRIPT):
 langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
(Bolivia);
If I cut out every entry over 89, no problem. If I add a 90th entry, even as
a
duplicate of 89, I get the error.
Can someone else please test out their CFMX system for this? Just a simple 2
dimensional array with 3 items per row. See what the max is for you. I'm
using
UD3.
Thanks

Michael Dinowitz
Master of the House of Fusion
http://www.houseoffusion.com



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: (CFMX) Array Max size?

2003-03-24 Thread Michael Dinowitz
I modified and tested your code with no problem at all. I'm going to dig into
this code again and test it. Also, the array was inside a CFMODULE which may
have some effect. I'll find out soon.
Thanks


 cfset myarray = arraynew(2) /

 cfloop from=1 to=1500 index=i 

 cfset myarray[i][1] = index#i# /
 cfset myarray[i][2] = test xx /
 cfset myarray[i][3] = text xx /

 /cfloop

 this works fine for me.

 WG

 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 13:11
 To: CF-Talk
 Subject: (CFMX) Array Max size?


 I've got a 2 dimensional array (well, it's actually someone else's) and when
 I
 run it I get this error message:
 The system has attempted to use an undefined value, which usually indicates
 a
 programming error, either in your code or some system code.
 Null Pointers are another name for undefined values.

 I've traced the problem to the array itself. When there are 89 entries in
 it, no
 problem. Once a 90th entry is added, it chokes.
 The 89th entry looks like this (in CFSCRIPT):
  langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
 (Bolivia);
 If I cut out every entry over 89, no problem. If I add a 90th entry, even as
 a
 duplicate of 89, I get the error.
 Can someone else please test out their CFMX system for this? Just a simple 2
 dimensional array with 3 items per row. See what the max is for you. I'm
 using
 UD3.
 Thanks

 Michael Dinowitz
 Master of the House of Fusion
 http://www.houseoffusion.com


 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: (CFMX) Array Max size?

2003-03-24 Thread webguy
This works too.

cfset myarray = arraynew(2) /

cfloop from=1 to=1500 index=i 

cfset myarray[i][1] = a#i# /
cfset myarray[i][2] = test xx /
cfset myarray[i][3] = text xx /

cfdump var=#myarray[i]# /


/cfloop


Any chance this is an out-by-one error?

BTW I'm just updating to ud3

WG


-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 13:24
To: CF-Talk
Subject: Re: (CFMX) Array Max size?


Did you try to access each array element on each loop iteration?


 cfset myarray = arraynew(2) /

 cfloop from=1 to=1500 index=i 

 cfset myarray[i][1] = index#i# /
 cfset myarray[i][2] = test xx /
 cfset myarray[i][3] = text xx /

 /cfloop

 this works fine for me.

 WG

 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 13:11
 To: CF-Talk
 Subject: (CFMX) Array Max size?


 I've got a 2 dimensional array (well, it's actually someone else's) and
when
 I
 run it I get this error message:
 The system has attempted to use an undefined value, which usually
indicates
 a
 programming error, either in your code or some system code.
 Null Pointers are another name for undefined values.

 I've traced the problem to the array itself. When there are 89 entries in
 it, no
 problem. Once a 90th entry is added, it chokes.
 The 89th entry looks like this (in CFSCRIPT):
  langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
 (Bolivia);
 If I cut out every entry over 89, no problem. If I add a 90th entry, even
as
 a
 duplicate of 89, I get the error.
 Can someone else please test out their CFMX system for this? Just a simple
2
 dimensional array with 3 items per row. See what the max is for you. I'm
 using
 UD3.
 Thanks

 Michael Dinowitz
 Master of the House of Fusion
 http://www.houseoffusion.com




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: (CFMX) Array Max size?

2003-03-24 Thread Michael Dinowitz
OK, this is stranger than hell even though I got it to work.
Basically, the error is thrown when a CFMODULE is called that has a certain
amount of code in it. On first examination, it looks like it was the array size
as limiting the array size causes the template to run OK. This was proven not to
be the issue in experimentation. Additional tests made it look like ANY call to
the large array from within a CFOUTPUT was causing a problem. Very strange. One
thing that I tried was to remove the
cfsetting EnableCFOutputOnly=YES
from the template and all of a sudden it worked. Something with that tag and
either the size of the array or the size of the template (or even the size of
the result code) caused a strange error.
Once I get some sleep I'll try to write this one up and submit it to MM.


 This works too.

 cfset myarray = arraynew(2) /

 cfloop from=1 to=1500 index=i 

 cfset myarray[i][1] = a#i# /
 cfset myarray[i][2] = test xx /
 cfset myarray[i][3] = text xx /

 cfdump var=#myarray[i]# /


 /cfloop


 Any chance this is an out-by-one error?

 BTW I'm just updating to ud3

 WG


 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 13:24
 To: CF-Talk
 Subject: Re: (CFMX) Array Max size?


 Did you try to access each array element on each loop iteration?


  cfset myarray = arraynew(2) /
 
  cfloop from=1 to=1500 index=i 
 
  cfset myarray[i][1] = index#i# /
  cfset myarray[i][2] = test xx /
  cfset myarray[i][3] = text xx /
 
  /cfloop
 
  this works fine for me.
 
  WG
 
  -Original Message-
  From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
  Sent: 24 March 2003 13:11
  To: CF-Talk
  Subject: (CFMX) Array Max size?
 
 
  I've got a 2 dimensional array (well, it's actually someone else's) and
 when
  I
  run it I get this error message:
  The system has attempted to use an undefined value, which usually
 indicates
  a
  programming error, either in your code or some system code.
  Null Pointers are another name for undefined values.
 
  I've traced the problem to the array itself. When there are 89 entries in
  it, no
  problem. Once a 90th entry is added, it chokes.
  The 89th entry looks like this (in CFSCRIPT):
   langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
  (Bolivia);
  If I cut out every entry over 89, no problem. If I add a 90th entry, even
 as
  a
  duplicate of 89, I get the error.
  Can someone else please test out their CFMX system for this? Just a simple
 2
  dimensional array with 3 items per row. See what the max is for you. I'm
  using
  UD3.
  Thanks
 
  Michael Dinowitz
  Master of the House of Fusion
  http://www.houseoffusion.com
 
 
 

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: (CFMX) Array Max size?

2003-03-24 Thread webguy
Any chance this is max java class code issue?

Breaking up the code into functions might help test the issue.
Sean has something in this blog about this limit

WG

-Original Message-
From: Michael Dinowitz [mailto:
Sent: 24 March 2003 13:45
To: CF-Talk
Subject: Re: (CFMX) Array Max size?


OK, this is stranger than hell even though I got it to work.
Basically, the error is thrown when a CFMODULE is called that has a certain
amount of code in it. On first examination, it looks like it was the array
size
as limiting the array size causes the template to run OK. This was proven
not to
be the issue in experimentation. Additional tests made it look like ANY call
to
the large array from within a CFOUTPUT was causing a problem. Very strange.
One
thing that I tried was to remove the
cfsetting EnableCFOutputOnly=YES
from the template and all of a sudden it worked. Something with that tag and
either the size of the array or the size of the template (or even the size
of
the result code) caused a strange error.
Once I get some sleep I'll try to write this one up and submit it to MM.


 This works too.

 cfset myarray = arraynew(2) /

 cfloop from=1 to=1500 index=i 

 cfset myarray[i][1] = a#i# /
 cfset myarray[i][2] = test xx /
 cfset myarray[i][3] = text xx /

 cfdump var=#myarray[i]# /


 /cfloop


 Any chance this is an out-by-one error?

 BTW I'm just updating to ud3

 WG


 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 13:24
 To: CF-Talk
 Subject: Re: (CFMX) Array Max size?


 Did you try to access each array element on each loop iteration?


  cfset myarray = arraynew(2) /
 
  cfloop from=1 to=1500 index=i 
 
  cfset myarray[i][1] = index#i# /
  cfset myarray[i][2] = test xx /
  cfset myarray[i][3] = text xx /
 
  /cfloop
 
  this works fine for me.
 
  WG
 
  -Original Message-
  From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
  Sent: 24 March 2003 13:11
  To: CF-Talk
  Subject: (CFMX) Array Max size?
 
 
  I've got a 2 dimensional array (well, it's actually someone else's) and
 when
  I
  run it I get this error message:
  The system has attempted to use an undefined value, which usually
 indicates
  a
  programming error, either in your code or some system code.
  Null Pointers are another name for undefined values.
 
  I've traced the problem to the array itself. When there are 89 entries
in
  it, no
  problem. Once a 90th entry is added, it chokes.
  The 89th entry looks like this (in CFSCRIPT):
   langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
  (Bolivia);
  If I cut out every entry over 89, no problem. If I add a 90th entry,
even
 as
  a
  duplicate of 89, I get the error.
  Can someone else please test out their CFMX system for this? Just a
simple
 2
  dimensional array with 3 items per row. See what the max is for you. I'm
  using
  UD3.
  Thanks
 
  Michael Dinowitz
  Master of the House of Fusion
  http://www.houseoffusion.com
 
 
 



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: (CFMX) Array Max size?

2003-03-24 Thread webguy
Should be...max java class size issue?

-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 13:57
To: CF-Talk
Subject: RE: (CFMX) Array Max size?


Any chance this is max java class code issue?

Breaking up the code into functions might help test the issue.
Sean has something in this blog about this limit

WG

-Original Message-
From: Michael Dinowitz [mailto:
Sent: 24 March 2003 13:45
To: CF-Talk
Subject: Re: (CFMX) Array Max size?


OK, this is stranger than hell even though I got it to work.
Basically, the error is thrown when a CFMODULE is called that has a certain
amount of code in it. On first examination, it looks like it was the array
size
as limiting the array size causes the template to run OK. This was proven
not to
be the issue in experimentation. Additional tests made it look like ANY call
to
the large array from within a CFOUTPUT was causing a problem. Very strange.
One
thing that I tried was to remove the
cfsetting EnableCFOutputOnly=YES
from the template and all of a sudden it worked. Something with that tag and
either the size of the array or the size of the template (or even the size
of
the result code) caused a strange error.
Once I get some sleep I'll try to write this one up and submit it to MM.


 This works too.

 cfset myarray = arraynew(2) /

 cfloop from=1 to=1500 index=i 

 cfset myarray[i][1] = a#i# /
 cfset myarray[i][2] = test xx /
 cfset myarray[i][3] = text xx /

 cfdump var=#myarray[i]# /


 /cfloop


 Any chance this is an out-by-one error?

 BTW I'm just updating to ud3

 WG


 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 13:24
 To: CF-Talk
 Subject: Re: (CFMX) Array Max size?


 Did you try to access each array element on each loop iteration?


  cfset myarray = arraynew(2) /
 
  cfloop from=1 to=1500 index=i 
 
  cfset myarray[i][1] = index#i# /
  cfset myarray[i][2] = test xx /
  cfset myarray[i][3] = text xx /
 
  /cfloop
 
  this works fine for me.
 
  WG
 
  -Original Message-
  From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
  Sent: 24 March 2003 13:11
  To: CF-Talk
  Subject: (CFMX) Array Max size?
 
 
  I've got a 2 dimensional array (well, it's actually someone else's) and
 when
  I
  run it I get this error message:
  The system has attempted to use an undefined value, which usually
 indicates
  a
  programming error, either in your code or some system code.
  Null Pointers are another name for undefined values.
 
  I've traced the problem to the array itself. When there are 89 entries
in
  it, no
  problem. Once a 90th entry is added, it chokes.
  The 89th entry looks like this (in CFSCRIPT):
   langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
  (Bolivia);
  If I cut out every entry over 89, no problem. If I add a 90th entry,
even
 as
  a
  duplicate of 89, I get the error.
  Can someone else please test out their CFMX system for this? Just a
simple
 2
  dimensional array with 3 items per row. See what the max is for you. I'm
  using
  UD3.
  Thanks
 
  Michael Dinowitz
  Master of the House of Fusion
  http://www.houseoffusion.com
 
 
 




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: (CFMX) Array Max size?

2003-03-24 Thread Michael Dinowitz
The code in question is a setup of the array, a loop over it with an if and an
output in it. I'll read Sean's blog to see if it fits but it's really simple
stuff which is why it took me the time it did to hunt down what was up.
Thanks

 Any chance this is max java class code issue?

 Breaking up the code into functions might help test the issue.
 Sean has something in this blog about this limit

 WG

 -Original Message-
 From: Michael Dinowitz [mailto:
 Sent: 24 March 2003 13:45
 To: CF-Talk
 Subject: Re: (CFMX) Array Max size?


 OK, this is stranger than hell even though I got it to work.
 Basically, the error is thrown when a CFMODULE is called that has a certain
 amount of code in it. On first examination, it looks like it was the array
 size
 as limiting the array size causes the template to run OK. This was proven
 not to
 be the issue in experimentation. Additional tests made it look like ANY call
 to
 the large array from within a CFOUTPUT was causing a problem. Very strange.
 One
 thing that I tried was to remove the
 cfsetting EnableCFOutputOnly=YES
 from the template and all of a sudden it worked. Something with that tag and
 either the size of the array or the size of the template (or even the size
 of
 the result code) caused a strange error.
 Once I get some sleep I'll try to write this one up and submit it to MM.


  This works too.
 
  cfset myarray = arraynew(2) /
 
  cfloop from=1 to=1500 index=i 
 
  cfset myarray[i][1] = a#i# /
  cfset myarray[i][2] = test xx /
  cfset myarray[i][3] = text xx /
 
  cfdump var=#myarray[i]# /
 
 
  /cfloop
 
 
  Any chance this is an out-by-one error?
 
  BTW I'm just updating to ud3
 
  WG
 
 
  -Original Message-
  From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
  Sent: 24 March 2003 13:24
  To: CF-Talk
  Subject: Re: (CFMX) Array Max size?
 
 
  Did you try to access each array element on each loop iteration?
 
 
   cfset myarray = arraynew(2) /
  
   cfloop from=1 to=1500 index=i 
  
   cfset myarray[i][1] = index#i# /
   cfset myarray[i][2] = test xx /
   cfset myarray[i][3] = text xx /
  
   /cfloop
  
   this works fine for me.
  
   WG
  
   -Original Message-
   From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
   Sent: 24 March 2003 13:11
   To: CF-Talk
   Subject: (CFMX) Array Max size?
  
  
   I've got a 2 dimensional array (well, it's actually someone else's) and
  when
   I
   run it I get this error message:
   The system has attempted to use an undefined value, which usually
  indicates
   a
   programming error, either in your code or some system code.
   Null Pointers are another name for undefined values.
  
   I've traced the problem to the array itself. When there are 89 entries
 in
   it, no
   problem. Once a 90th entry is added, it chokes.
   The 89th entry looks like this (in CFSCRIPT):
langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = Spanish
   (Bolivia);
   If I cut out every entry over 89, no problem. If I add a 90th entry,
 even
  as
   a
   duplicate of 89, I get the error.
   Can someone else please test out their CFMX system for this? Just a
 simple
  2
   dimensional array with 3 items per row. See what the max is for you. I'm
   using
   UD3.
   Thanks
  
   Michael Dinowitz
   Master of the House of Fusion
   http://www.houseoffusion.com
  
  
  
 
 

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: (CFMX) Array Max size?

2003-03-24 Thread Nick de Voil
 Should be...max java class size issue?

It's reminiscent of a problem I've had using JSP custom tags in JRun, where
the compilation would fail if you had too many custom tag invocations in a
page. The only solution seemed to be to split the source up using JSP
includes - quite annoying at the time.

I think the error message there talked about illegal target of jump or
branch.

Nick



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: (CFMX) Array Max size?

2003-03-24 Thread Sean A Corfield
Yup, that would be it. My guess is that the array initialization 
generates enough code that it would exceed the Java class size limit 
but it interacts with the enableCFoutputOnly setting in a way that 
prevents the error occurring when it generates output...

Edit the appropriate XML file to allow the generated Java code to hang 
around so you can see the difference in the generated code...

On Monday, Mar 24, 2003, at 05:57 US/Pacific, webguy wrote:

 Any chance this is max java class code issue?

 Breaking up the code into functions might help test the issue.
 Sean has something in this blog about this limit

 WG

 -Original Message-
 From: Michael Dinowitz [mailto:
 Sent: 24 March 2003 13:45
 To: CF-Talk
 Subject: Re: (CFMX) Array Max size?


 OK, this is stranger than hell even though I got it to work.
 Basically, the error is thrown when a CFMODULE is called that has a 
 certain
 amount of code in it. On first examination, it looks like it was the 
 array
 size
 as limiting the array size causes the template to run OK. This was 
 proven
 not to
 be the issue in experimentation. Additional tests made it look like 
 ANY call
 to
 the large array from within a CFOUTPUT was causing a problem. Very 
 strange.
 One
 thing that I tried was to remove the
 cfsetting EnableCFOutputOnly=YES
 from the template and all of a sudden it worked. Something with that 
 tag and
 either the size of the array or the size of the template (or even the 
 size
 of
 the result code) caused a strange error.
 Once I get some sleep I'll try to write this one up and submit it to 
 MM.


 This works too.

 cfset myarray = arraynew(2) /

 cfloop from=1 to=1500 index=i 

 cfset myarray[i][1] = a#i# /
 cfset myarray[i][2] = test xx /
 cfset myarray[i][3] = text xx /

 cfdump var=#myarray[i]# /


 /cfloop


 Any chance this is an out-by-one error?

 BTW I'm just updating to ud3

 WG


 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 13:24
 To: CF-Talk
 Subject: Re: (CFMX) Array Max size?


 Did you try to access each array element on each loop iteration?


 cfset myarray = arraynew(2) /

 cfloop from=1 to=1500 index=i 

 cfset myarray[i][1] = index#i# /
 cfset myarray[i][2] = test xx /
 cfset myarray[i][3] = text xx /

 /cfloop

 this works fine for me.

 WG

 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 13:11
 To: CF-Talk
 Subject: (CFMX) Array Max size?


 I've got a 2 dimensional array (well, it's actually someone else's) 
 and
 when
 I
 run it I get this error message:
 The system has attempted to use an undefined value, which usually
 indicates
 a
 programming error, either in your code or some system code.
 Null Pointers are another name for undefined values.

 I've traced the problem to the array itself. When there are 89 
 entries
 in
 it, no
 problem. Once a 90th entry is added, it chokes.
 The 89th entry looks like this (in CFSCRIPT):
  langs[89][1] = F;  langs[89][2] = es-bo;  langs[89][3] = 
 Spanish
 (Bolivia);
 If I cut out every entry over 89, no problem. If I add a 90th entry,
 even
 as
 a
 duplicate of 89, I get the error.
 Can someone else please test out their CFMX system for this? Just a
 simple
 2
 dimensional array with 3 items per row. See what the max is for you. 
 I'm
 using
 UD3.
 Thanks

 Michael Dinowitz
 Master of the House of Fusion
 http://www.houseoffusion.com


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: (CFMX) Array Max size?

2003-03-24 Thread Sean A Corfield
On Monday, Mar 24, 2003, at 06:12 US/Pacific, Nick de Voil wrote:
 It's reminiscent of a problem I've had using JSP custom tags in JRun, 
 where
 the compilation would fail if you had too many custom tag invocations 
 in a
 page. The only solution seemed to be to split the source up using JSP
 includes - quite annoying at the time.

 I think the error message there talked about illegal target of jump or
 branch.

Yup, a Java limitation - you had too much inline code (which was why 
splitting it into include files solved the problem).

Sean A Corfield -- http://www.corfield.org/blog/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4