swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static vars


From: Marcus G. Daniels
Subject: Re: static vars
Date: 28 Sep 1998 14:44:45 -0700

>>>>> "D3" == donalson  <address@hidden> writes:

D3> It is not improbable
D3> that this is caued by mishandling of static vars when there are
D3> multiple insances of the same object.

How were you tracing the values of the changes?  In the debugger or
with instrumentation?  If the former, perhaps things weren't happening
when you expected, due to the code being optimized. 

If this is object-oriented code, it is likely not what you want to
share a memory area using static variables, since multiple instances
will share that space.  But that's not mishandling, that's just how
static variables work.



 

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]