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

Unable to load framework: InexactError() #1

Closed
kmsquire opened this issue Jul 4, 2015 · 1 comment
Closed

Unable to load framework: InexactError() #1

kmsquire opened this issue Jul 4, 2015 · 1 comment

Comments

@kmsquire
Copy link
Contributor

kmsquire commented Jul 4, 2015

Seems like an Int to Bool conversion stopped working?

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.0-dev+5645 (2015-06-27 21:43 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit b2e69d0* (6 days old master)
|__/                   |  x86_64-apple-darwin14.3.0

julia> using ObjectiveC

julia> ObjectiveC.framework("AVFoundation")
ERROR: InexactError()
 in convert at bool.jl:6
 in loadbundle at /Users/kmsquire/.julia/v0.4/ObjectiveC/src/foundation.jl:31
 in framework at /Users/kmsquire/.julia/v0.4/ObjectiveC/src/foundation.jl:37

I wanted to fool around with this for querying camera capabilities (on a Mac) for VideoIO.jl, since it seems that ffmpeg doesn't have that capability yet.

@vtjnash
Copy link

vtjnash commented Jul 4, 2015

Int -> Bool conversion now must be done explicitly (with x == 0, or x == C_NULL in this case), rather than implicitly with bool(x)

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

2 participants