On Tue, Jan 8, 2013 at 5:29 AM, Benjamin Farrell <
bengf...@gmail.com> wrote:
> Hey everyone - I'm trying to bind Node.js to the OpenNI project
> (
http://www.openni.org/). I'm coming at this having not really used much
> C++, let alone the Node build system.
>
> Anyway - I have been able to create a custom AddOn for Node via Gyp. It
> loads the proper shared libraries compiles just fine. I can even load the
> module - but it crashes on an exception. The exception is coming from the
> OpenNI project - however, before I post to that group, I wanted to check
> here.
>
> The reason I wanted to check here, is that the exception comes when the
> shared libraries themselves load yet ANOTHER .so file for the device driver.
> It seems to be failing when trying to execute and initialize that shared
> library.
>
> So my question is - is there anything in Node that prevents this behavior?
> Perhaps some kind of sandbox, or lockout, or something that prevents shared
> libraries from loading and executing other libraries loaded at runtime?
>
> Thanks! Again, sorry if it's a silly question - all of this C++ really
> isn't my style yet, and I'm just getting my feet wet,
Nothing I can think of. Native add-ons are loaded with
dlopen(RTLD_LAZY) and that's it, no special processing or handling.