Subj : serialization/deserialization API(XDR) question To : netscape.public.mozilla.jseng From : archer@meta-comm.com (Aleksey) Date : Sun Mar 14 2004 12:28 pm Hello folks, I'm trying to use serialization/deserialization APIs(XDR), it's really a great feature! Some of my scripts are saved/restored perfectly but one of the sripts crashes (EXCEPTION_ACCESS_VIOLATION) all the time. The crash is reproduced in jsshell on the script below. The reason of crash is that two objects of the function "loader" and variable have the same name - if I comment on function or variable the script runs perfectly otherwise it's crashed. It looks like a bug. If somebody has a clue or any suggestions how can it be fixed I will appreciate very much. I'm using 1.5rc6 version of jsref. function g() { var core = {}; core.js = {}; core.js.init = function() { var loader = null; function loader() {} }; return core; } var s = new Script(""+g.toString()); var frozen = s.freeze(); // crash. print("len:"+frozen.length); --- Aleksey Chernoraenko, MetaCommunications Engineering. .