Subj : Passing context and object to shared library To : netscape.public.mozilla.jseng From : Date : Tue Sep 23 2003 04:04 pm Hello, We have a Linux application that programmatically loads shared libraries/objects (SO's) that contain javascript engine code. The idea was that our application creates the javascript interp and passes contexts and objects to the SO, which would then create more objects, etc, in that interp. However, if I link the SO and the executable with the javascript shared library, the SO bails in JS_DefineObject (which is using contexts and objects passed from the app) with "Assertion Failure: OBJ_IS_NATIVE(pobj), AT JSOBJ.C:1765". If I link the application the same way, but with -rdynamic, and don't link the SO with the javascript shared library, everything works as expected. I can think of reasons why this would fix problems, but it seemed unexpected that I should have to do this. Should I have been surprised by this behavior? I'm not trying to do anything fancy with multiple interps or mixing contexts or anything. I am using JavaScript 1.5 - rc5a. Thanks. --- Michael M. Morrison Realtime Technologies, Inc. www.simcreator.com .