Forums > Dev

are static variables shared between instances of an external?

March 26, 2007 | 4:28 am

Hi,

Are static variables shared between instances of an external? That
is, if I create a global in my .c/.cpp file, will the value be shared
by all instances of my object in Max?

Thanks

grrr waaa
http://www.grahamwakefield.net


March 26, 2007 | 4:33 am

On 07-03-25, at 2128, Graham Wakefield wrote:
> Hi,
>
> Are static variables shared between instances of an external? That
> is, if I create a global in my .c/.cpp file, will the value be
> shared by all instances of my object in Max?
>
Yes. Check out:

http://www.cycling74.com/twiki/pub/Share/JoshuaKitClayton/uid010426.sit

r.


Viewing 2 posts - 1 through 2 (of 2 total)