{"action":"created","issue":{"url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/365","repository_url":"https://api.github.com/repos/IntelRealSense/librealsense","labels_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/365/comments","events_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/365/events","html_url":"https://github.com/IntelRealSense/librealsense/issues/365","id":190365825,"number":365,"title":"Using Python ctypes to access camera","user":{"login":"drasmuss","id":1952220,"avatar_url":"https://avatars.githubusercontent.com/u/1952220?v=3","gravatar_id":"","url":"https://api.github.com/users/drasmuss","html_url":"https://github.com/drasmuss","followers_url":"https://api.github.com/users/drasmuss/followers","following_url":"https://api.github.com/users/drasmuss/following{/other_user}","gists_url":"https://api.github.com/users/drasmuss/gists{/gist_id}","starred_url":"https://api.github.com/users/drasmuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drasmuss/subscriptions","organizations_url":"https://api.github.com/users/drasmuss/orgs","repos_url":"https://api.github.com/users/drasmuss/repos","events_url":"https://api.github.com/users/drasmuss/events{/privacy}","received_events_url":"https://api.github.com/users/drasmuss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-18T16:45:43Z","updated_at":"2016-12-13T13:21:14Z","closed_at":"2016-11-29T15:46:49Z","body":"| Required Info  |   |\r\n|---|---|\r\n| Camera Model | R200 | \r\n| Firmware Version |  2.1.27.2853 | \r\n| Operating System & Version | Windows 10  |\r\n| Kernel Version (Linux Only)  |   |\r\n| Build System |  VS2015 | \r\n\r\nI am trying to use `ctypes` to access the `realsense` DLL (compiled in VS2015).  Here's a minimal script showing what I'm doing:\r\n``` python\r\n    import ctypes\r\n\r\n    RS_API_MAJOR_VERSION = 1\r\n    RS_API_MINOR_VERSION = 11\r\n    RS_API_PATCH_VERSION = 0\r\n    RS_API_VERSION = (RS_API_MAJOR_VERSION * 10000 +\r\n                      RS_API_MINOR_VERSION * 100 +\r\n                      RS_API_PATCH_VERSION)\r\n\r\n    libc = ctypes.CDLL(\"realsense-d.dll\")\r\n    libc.rs_create_context(RS_API_VERSION)\r\n    ...\r\n```\r\n\r\nThis approach used to work (as of at least Sept 23 2016), and I was able to stream data from the camera.  But there have been some firmware and API updates since then, and now the `libc.rs_create_context(RS_API_VERSION)` line fails with `exception: access violation reading 0xFFFFFFFFFFFFFFFF`.\r\n\r\nAny ideas what might have changed that is causing this to fail?  Or just general suggestions for how to get this working again?"},"comment":{"url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/comments/266736574","html_url":"https://github.com/IntelRealSense/librealsense/issues/365#issuecomment-266736574","issue_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/365","id":266736574,"user":{"login":"toinsson","id":1176108,"avatar_url":"https://avatars.githubusercontent.com/u/1176108?v=3","gravatar_id":"","url":"https://api.github.com/users/toinsson","html_url":"https://github.com/toinsson","followers_url":"https://api.github.com/users/toinsson/followers","following_url":"https://api.github.com/users/toinsson/following{/other_user}","gists_url":"https://api.github.com/users/toinsson/gists{/gist_id}","starred_url":"https://api.github.com/users/toinsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toinsson/subscriptions","organizations_url":"https://api.github.com/users/toinsson/orgs","repos_url":"https://api.github.com/users/toinsson/repos","events_url":"https://api.github.com/users/toinsson/events{/privacy}","received_events_url":"https://api.github.com/users/toinsson/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T13:21:14Z","updated_at":"2016-12-13T13:21:14Z","body":"I have made a python bindings that is based on ctypes, but lack windows users, maybe you would like to have a look @drasmuss ? \r\nhttps://github.com/toinsson/pyrealsense"}}
{"actor":{"display_login":"toinsson"}}