Question about scope of varialbes across multiple instances…

Dec 15, 2012 at 6:48pm

Question about scope of varialbes across multiple instances…

Let’s say you design a 1-row sequencer, and then use two mxj instances [mxj mySequencer] to build a 2-row sequencer…does Max create two separate JVM’s? What’s the method for keeping variables in each mxj object isolated? Setting them as private? protected? etc etc…

#65693
Dec 16, 2012 at 10:22am

There’s a single JVM running all MXJ instances. Each MXJ is backed by its own MaxObject (sub)class with its own fields, although anything declared static will be shared by all instances.

#236666

You must be logged in to reply to this topic.