> Here's something that confuses me about Application.cfc. I 
> recently decided to put a bunch of initial stuff in an .ini 
> file. But when I tried to read that (using GetProfileString) 
> from within OnApplicationStart(), it ignored it completely. I 
> tried everything I could think of, moved the code into 
> onRequest, changed the ini layout so that it was bad (it 
> never threw an error). Finally, I gave up and used an XML 
> file, which worked fine. But was this something I did wrong 
> or is there some odd bug in the processing of Application.cfc?

It's almost certainly an error in your GetProfileString code, since this
exact technique is used in the official Adobe Advanced ColdFusion 7
courseware. Are you using a fully-qualified file path? Is your ini file
"well-formed" with section headers?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to