Subj : AV running Script.thaw To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Wed Aug 13 2003 02:34 am The AV occurs in js32.dll [1]. Here's the quick'n'dirty: - small amount of JS code stored in unicode string from Script.freeze (used JS_GetStringChars) - string stored to a file - same string (verified -- exactly the same) loaded from file - string is passed as args[0] to JS_CallFunctionName(context,scriptObjectp,'thaw',1,@args,@rval) (Delphi syntax above, but you get the idea. scriptObjectp is a JS_NewScriptObject(context,null) call result.) [1] Tracing the CPU walks me through the following (unfortunately I can't get a detailed stack trace thru Delphi's IDE): JS_CallFunctionName js_InternalCall (aka js_InternalInvoke) js_Invoke (I can follow it to line 752, but lose my spot after that) Is there anything else that I should give you? The javascript that I'm deserializing is: function main(argc) { return "Testing. " +argc +" is argument 1."; } This works fine when I simply evaluate and call main. Thanks, Sterling .