While i applaud your attempt here, you are barking up the wrong tree.

What are you going to do if you find that it has been flushed? You have lost the ability to send any HTTP header at that point anyway, so there is nothing more you can do than just catch the error. So the question you have to figure out, where is this being done?

The trigger points are:

- The buffer for the page has been filled and is flushed before any new data can be written
- someone has a CFFLUSH in there
- someone has a CFCONTENT to send external content

i would wager the first one is your problem.

The usual suspect here is lots of whitespace generated that isn't being eaten. CFSILENT around blocks of logic can do wonders. An example of whitespace leaking out is a CFQUERY-CFOUTPUT/CFLOOP combination. Or if you have lots of CFC's that don't have the output=false set on it. There are tons of places that whitespace will leak out.

So look at your app holistically and figure out where you can separate the display (view) from the business logic (controller/model) and reduce the amount of unnecessary whitespace.

Hope this helps,

/from the 1st alan/

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

--- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to