Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

free : the handle is invalid #4

Open
npenin opened this issue Jul 1, 2013 · 2 comments
Open

free : the handle is invalid #4

npenin opened this issue Jul 1, 2013 · 2 comments

Comments

@npenin
Copy link

npenin commented Jul 1, 2013

Hi,

In the media.js file, it tries to do the following (which does not work on my computer win8-x64). Isn't is linux specific, of isn't there a way of disposing the media directly within the libvlc api ?

var libc = ffi.Library(null, {
  'free': ['void', [ 'pointer' ]],
});
@skiqh
Copy link

skiqh commented Feb 17, 2014

Same error message for me on win7-x86.

d:\vlc\node_modules\vlc\node_modules\ffi\lib\dynamic_library.js:112
    throw new Error('Dynamic Symbol Retrieval Error: ' + this.error())
          ^
Error: Dynamic Symbol Retrieval Error: "free": The handle is invalid.
    at DynamicLibrary.get (d:\vlc\node_modules\vlc\node_modules\ffi\lib\dynamic_library.js:112:11)
    at d:\vlc\node_modules\vlc\node_modules\ffi\lib\library.js:50:19
    at Array.forEach (native)
    at Object.Library (d:\vlc\node_modules\vlc\node_modules\ffi\lib\library.js:47:28)
    at Object.<anonymous> (d:\vlc\node_modules\vlc\lib\media.js:28:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

libvlc.dll is in C:\Program Files\VideoLAN\VLC (version 2.1.2)

@xdenser
Copy link

xdenser commented Apr 23, 2014

Workaround for Windows.

var libc = ffi.Library('msvcrt', {
  'free': ['void', [ 'pointer' ]],
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants