Subj : Mixing up parameters in setProperty callback To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Sat Dec 13 2003 03:12 am For a certain class I have the following setProperty callback: function IntfBridge_SetProperty(cx: PJSContext; obj: PJSObject; id: jsval; vp: pjsval): JSBool; cdecl; This works fine for the most part. I convert id and vp into strings so I can check the properties against a Delphi object: function GetParamName(cx: PJSContext; id: jsval): PChar; begin Result := PChar(JS_GetStringBytes(JS_ValueToString(cx, id))); end; procedure GetParamValue(cx: PJSContext; vp: pjsval; var pch: PChar); begin pch := PChar(JS_GetStringBytes(JS_ValueToString(cx, vp^))); end; These just return const char * values to the IntfBridge_SetProperty routine. Most of the time when running the following in javascript... bridge.Value = "lorem ipsum dolor sit amet"; ....it'll properly send over "Value" and "lorem ipsum..." as id and vp^ respectively. Sometimes, however, both id and vp^ will read as "lorem ipsum dolor sit amet". I'm not sure what would cause this to occur, nor where to start examining my code. Any help is appreciated, Sterling .