To everyone on this list;

Big thanks for the help in reference to the 'C++ Pure Virtual Function Call'
thread that began on this list about two weeks ago.

The solution was a ultimately a tricky one; I ended up upgrading the CF4.5.0
box to CF5 and found I was able to eliminate 99% of the problems. But
performance was still sub-optimal, and there was one page that was popping
up on my error logs intermittently. 

I spent some time today going through that page line by line, and discovered
the following innoculous-looking lines of code (that the guy who owned this
project before me wrote):

<CFSET col1 = 123456789>
<CFOUTPUT>#numberformat(replace(decimalformat(col1), ",", "", "ALL"),
"_.______")#</cfoutput>

They kill CF server dead. After being loaded about 10 - 20 times, the code
will eat up all available memory and resources on the server (warning:
evaluate this statement at your own risk).

I think the problem is with the numberformat being passed a string, but I am
not really sure. Anyone have any guesses as to why this code is so lethal
yet will not throw an error on its own?

M


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=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

Reply via email to