Hi Brook,
I tried your code and for 12981 got

"Ths string is 53799 chars long"
(No null pointer exception)

for a hoot I bumped it up to 50000 I got

"Ths string is 238894 chars long"
(No null pointer exception)

It is a phat box though. W2k, jdk1.4.0_02, IIS5



-----Original Message-----
From: Brook Davies [mailto:brook@;maracasmedia.com]
Sent: Tuesday, October 29, 2002 4:26 PM
To: CF-Talk
Subject: CFMX possible bug, anyone care to verify


I might be missing something here, but I seem to be able to generate a null
error when performing a regex operation on a sting longer than 12980
chars.  Is this a known limitation?

Maybe some one could try this could on there CFMX dev box and tell me if
they get the same error. Here is some sample code which will generate a
string of 12980 characters long and then try a regular expression operation
on the string. This generates an error on my CFMX (updater installed)
server which is running Win2k / sp3 with IIS5.0.

<!--- changing the loop to value to anything over 12980 throws an error
(try it at 12980 and 12981)--->

<cfset str="">
<cfloop from="1" to="12981" index="i">
        <cfset str=str&i>
</cfloop>

<BR>
<cfoutput>Ths string is #len(str)# chars long</cfoutput>

<!--- this is the expression which causes the error --->
<cfset z=REfindnocase("(\[)([[:print:][:space:]])*(\])",str,1)>



Brook Davies



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

Reply via email to