{"action":"opened","issue":{"url":"https://api.github.com/repos/ni/nidaqmx-python/issues/52","repository_url":"https://api.github.com/repos/ni/nidaqmx-python","labels_url":"https://api.github.com/repos/ni/nidaqmx-python/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/ni/nidaqmx-python/issues/52/comments","events_url":"https://api.github.com/repos/ni/nidaqmx-python/issues/52/events","html_url":"https://github.com/ni/nidaqmx-python/issues/52","id":307766721,"number":52,"title":"nidaqmx memory leak","user":{"login":"dolhop","id":16820853,"avatar_url":"https://avatars2.githubusercontent.com/u/16820853?v=4","gravatar_id":"","url":"https://api.github.com/users/dolhop","html_url":"https://github.com/dolhop","followers_url":"https://api.github.com/users/dolhop/followers","following_url":"https://api.github.com/users/dolhop/following{/other_user}","gists_url":"https://api.github.com/users/dolhop/gists{/gist_id}","starred_url":"https://api.github.com/users/dolhop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dolhop/subscriptions","organizations_url":"https://api.github.com/users/dolhop/orgs","repos_url":"https://api.github.com/users/dolhop/repos","events_url":"https://api.github.com/users/dolhop/events{/privacy}","received_events_url":"https://api.github.com/users/dolhop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T18:37:40Z","updated_at":"2018-03-22T18:37:40Z","closed_at":null,"author_association":"NONE","body":"version: nidaqmx 0.5.7\r\nNI libraries: nidaq core 9.6\r\n\r\nI've been using v9.6 for years.  Recently changed from PyNidaqMx to nidaqmx and noticed a memory leak when polling a digital input line.  The below code, while extreme, exacerbates the issue.\r\n\r\n`'''test to show memory leak in nidaqmx'''\r\n# using a USB-6009\r\n# NidaqCore 9.6 library\r\n\r\nimport nidaqmx\r\n\r\ndaq = nidaqmx.system.System().devices[0]\r\n\r\nwhile True:\r\n    with nidaqmx.Task('task') as task:\r\n        task.di_channels.add_di_chan(lines=daq.name + '/port0/line3')\r\n        task.start()\r\n        result = task.read()\r\n`"}}
{"actor":{"display_login":"dolhop"}}