The White Screen Of Death (Don't Try This At Home)
Posted By : todd sharp Posted At : October 19, 2006 2:23 PM Posted In: CFCs, ColdFusion
0
I was just working on a cfc on my dev server and had done quite a lot of coding between tests when I came acrossed a weird issue. Usually I test quite frequently when I'm developing, just in case I mess something up (quite a rare occurence since I'm perfect) but this time I was on a roll so I just kept coding. After building quite a few methods, I went to a test page that called that cfc and reloaded. What happened next was a little suprising. I got nothing. No error, no debugging, no nothing. After about 10 minutes of banging my head against the keyboard (and a quick smoke break) I found the problem. See if you can find it too:
mycfc.cfc
<cfset utils = createObject("component", "path.to.mycfc")>
</cfcomponent>
You got it, I moronically tried to instantiate my own cfc (instead of my utils.cfc) from within itself. I'm a bit surprised that this did not create any type of exception, but I guess that's what you get for a momentary lack of common sense.


