Miguel, Egon, other Java pros, I need your help: Is it possible that when you use static variables in an applet then, when there are multiple applets on a page all loading at the same time, they share each other's variables? -- i.e. TRASH each other's variables?
I've got a page with 5 isosurfaces, one in each of 5 applets, and each time I load it at least one of them is totally trashed -- but trashed in a DIFFERENT way seemingly randomly each time I load. I realize now it is because I assigned "static" to arrays of objects that really aren't static. If the answer to this question is YES, then could this explain some of the odd null pointer errors that have arisen in the colix/normix area recently? For example, I see in Colix.java: private static int[] argbs = new int[128]; Now, maybe the "private" takes care of this, but if some other applet had assigned values to "argbs", wouldn't this then cause a problem? I'm reminded of the day I saw a button control on one page rotate the model on another..... Is this an issue we should look into? bob -- Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107 Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057 mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr "Imagination is more important than knowledge." - Albert Einstein _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
