{"action":"closed","issue":{"url":"https://api.github.com/repos/tbeu/matio/issues/44","repository_url":"https://api.github.com/repos/tbeu/matio","labels_url":"https://api.github.com/repos/tbeu/matio/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/matio/issues/44/comments","events_url":"https://api.github.com/repos/tbeu/matio/issues/44/events","html_url":"https://github.com/tbeu/matio/issues/44","id":175507746,"number":44,"title":"Mat73 file handle release on Mat_VarRead()","user":{"login":"cstaub","id":22053321,"avatar_url":"https://avatars.githubusercontent.com/u/22053321?v=3","gravatar_id":"","url":"https://api.github.com/users/cstaub","html_url":"https://github.com/cstaub","followers_url":"https://api.github.com/users/cstaub/followers","following_url":"https://api.github.com/users/cstaub/following{/other_user}","gists_url":"https://api.github.com/users/cstaub/gists{/gist_id}","starred_url":"https://api.github.com/users/cstaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstaub/subscriptions","organizations_url":"https://api.github.com/users/cstaub/orgs","repos_url":"https://api.github.com/users/cstaub/repos","events_url":"https://api.github.com/users/cstaub/events{/privacy}","received_events_url":"https://api.github.com/users/cstaub/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-07T13:50:40Z","updated_at":"2016-09-13T08:33:34Z","closed_at":"2016-09-13T08:33:34Z","body":"Hi,\r\n\r\nI'm facing an issue when reading matlab files of version 7.3 with Mat_VarRead(...). Although the file is closed, it cannot be deleted as the process still keeps a reference to the file. Simply calling Mat_VarReadInfo() works fine.\r\n\r\nExample:\r\n\r\nmat_t* matfp = Mat_Open(\"C:/temp/test/matlab.mat\", MAT_ACC_RDONLY);\r\n\r\n// matvar_t* matvar = Mat_VarReadInfo(matfp, \"Name\");  // -> works fine, file handle is released\r\nmatvar_t* matvar = Mat_VarRead(matfp, \"name\"); // -> fails -> file handle not released after Mat_Close()\r\n\r\nMat_VarPrint(matvar, 1);\r\n\r\nMat_VarFree(matvar);\r\nMat_Close(matfp);\r\n\r\nEnvironment is windows 7, 64bit, visual studio 2012, hdf4-lib version 1.10.0-patch1. No issues when using matlab v4.0 format.\r\n\r\nCan you please investigate and confirm. Thank you for your support.\r\ncstaub"}}
{"actor":{"display_login":"tbeu"}}