Philip Mak wrote:
> 
> On Sat, 8 Sep 2001, Joshua Chamas wrote:
> 
> > I think your analysis is right, that Script_OnStart is not
> > always being called, and the reason is that it is not always
> > being found in the global.asa ... I don't know how it would
> > work sometimes & not others.  A trace from the error_log
> > with Debug set to -1 would help from a fresh apache stop/start
> > through when the problem occurs.
> 
> I have attached the error log (might be pointless now since I fixed the
> problem---see below, but just in case you want it to investigate why
> this problem happened in the first place). Here's what I did:
> 
> 1. Start Apache
> 2. Load script in my browser (it gets an error)
> 3. Type "touch global.asa"
> 4. Load script in my browser again (it works this time)
> 

This was probably do to GlobalPackage not being set the same
for the Apache::ASP->Loader() so that when it was cached,
it didn't compile into the same package as your scripts
later on.

I need to figure out how to make Loader() better about
errors like this so that weird things don't happen like
this at runtime.  Other odd problems happen when XMLSubs
don't match.  I need to consider this some more, and 
see what can be done... the fix will probably be where
these compile cache keys are based on sum checksum of the 
config parameters on which things are based so that 
if the Loader() params are not the same the worst that 
would happen is you wouldn't benefit from the caching.

--Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to