Fred,
The whole point of copying is to avoid the locking issues, if after copying
you are left with references to the original data (what you're calling
pointers, giving away your C background ;-)  then we still have to use
locking - if only reading then read locks, but still lock so no other thread
touches this memory object during our reading it.

With that said - for small volume sites, with global variables that are
"very" constant i.e. just used to hold a constant value or cache the results
of a dB query you should almost never have problems - because you're almost
never writing into those variables so chances of a read and a write clashing
are tiny.

Noam


        ----------
        From:  Fred T. Sanders [SMTP:[EMAIL PROTECTED]]
        Sent:  Tuesday, 08 August 2000 1:14
        To:  [EMAIL PROTECTED]
        Subject:  Re: Locking & Request Scoped Variables (was RE: Global
Variables)

        Well yes, but Duplicate() is a 4.5.1 undocumented function that they
put
        there for Spectra.  I'm not even sure 4.5.1 pro has it, but
enterprise does.
        Otherwise yes you are correct Structcopy() only copies the first
level and
        creates pointers to the rest.  However for just using it to create
pointers
        to Application variables, its good enough.  After all we are only
using them
        to read not write.

        Fred

        
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to