Subj : Re: [spidermonkey] JS_CallFunction in Finalize To : Franck From : Brendan Eich Date : Sun Aug 28 2005 07:56 pm Franck wrote: > "Brendan Eich" a écrit dans le message de news: > det4m6$7o22@ripley.aoltw.net... >>BTW, there's no need to require .Proc('MessageBoxA') if you would rather >>allow just .MessageBoxA instead. >> > > > I need to do this because I define a 'Close' function on my Module class :/ I was making an independent comment ("BTW" for "By the way"): you don't need .Proc at all, whether or not you have .Close as a method. Here I'm assuming you are implementing in C or C++. Is the Module class not implemented in C? It sure looked like it from the Finalize hook you showed previously. Ok, so you have to share objects (share the one JSRuntime) with wxJS -- but why must onClose be scripted? It would be best to keep it all in C. /be .