Forums > Java

Question about scope of varialbes across multiple instances…

December 15, 2012 | 6:48 pm

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…


December 16, 2012 | 10:22 am

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.


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