{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/CNTK/issues/571","repository_url":"https://api.github.com/repos/Microsoft/CNTK","labels_url":"https://api.github.com/repos/Microsoft/CNTK/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/CNTK/issues/571/comments","events_url":"https://api.github.com/repos/Microsoft/CNTK/issues/571/events","html_url":"https://github.com/Microsoft/CNTK/issues/571","id":159610697,"number":571,"title":"access violation while using mex interface","user":{"login":"sofeikov","id":6204851,"avatar_url":"https://avatars.githubusercontent.com/u/6204851?v=3","gravatar_id":"","url":"https://api.github.com/users/sofeikov","html_url":"https://github.com/sofeikov","followers_url":"https://api.github.com/users/sofeikov/followers","following_url":"https://api.github.com/users/sofeikov/following{/other_user}","gists_url":"https://api.github.com/users/sofeikov/gists{/gist_id}","starred_url":"https://api.github.com/users/sofeikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofeikov/subscriptions","organizations_url":"https://api.github.com/users/sofeikov/orgs","repos_url":"https://api.github.com/users/sofeikov/repos","events_url":"https://api.github.com/users/sofeikov/events{/privacy}","received_events_url":"https://api.github.com/users/sofeikov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-06-10T10:59:48Z","updated_at":"2016-07-25T03:29:04Z","closed_at":null,"body":"Hi,\r\n\r\nI've been using CPPEvalWrapper.cpp for a while along with mex interface for my matlab scripts and it was working fine. Suddenly, for now obvious(for me) reason, I started getting two access violation errors.\r\n\r\nThis is the piece of code that fails:\r\n\r\n`\tchar *input_path = mxArrayToString(prhs[0]);\r\n\r\n\tmexPrintf(\"Model path is: %s\\n\", input_path);\r\n\r\n    std::string func = \"GetEvalF\";\r\n    auto hModule = LoadLibrary(_T(\"evaldll.dll\"));\r\n\tmexPrintf(\"First library loaded\");\r\n    auto procAddress = GetProcAddress(hModule, func.c_str());\r\n    auto getEvalProc = (GetEvalProc<float>)procAddress;\r\n\tIEvaluateModel<float> *model;\r\n    getEvalProc(&model);//FAIL HERE\r\n`\r\n\r\nHere is the error message I get:\r\n`[  1] 0x00007ffa3e422efa \\Documents\\GitHub\\CNTK\\Source\\Extensibility\\CPPEvalClient\\CPPEvalClient.mexw64+00012026 std::_Tree_buy<std::pair<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > const ,std::vector<float,std::allocator<float> > * __ptr64>,std::allocator<std::pair<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > const ,std::vector<float,std::allocator<float> > * __ptr64> > >::_Buynode<std::pair<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,std::vector<float,std::allocator<float> > * __ptr64> >+00000010`\r\n\r\nThe same message is shown two times in a row.\r\n\r\nAny clues?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Microsoft/CNTK/issues/comments/234828714","html_url":"https://github.com/Microsoft/CNTK/issues/571#issuecomment-234828714","issue_url":"https://api.github.com/repos/Microsoft/CNTK/issues/571","id":234828714,"user":{"login":"ZhangZhengchen","id":20040852,"avatar_url":"https://avatars.githubusercontent.com/u/20040852?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhangZhengchen","html_url":"https://github.com/ZhangZhengchen","followers_url":"https://api.github.com/users/ZhangZhengchen/followers","following_url":"https://api.github.com/users/ZhangZhengchen/following{/other_user}","gists_url":"https://api.github.com/users/ZhangZhengchen/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhangZhengchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhangZhengchen/subscriptions","organizations_url":"https://api.github.com/users/ZhangZhengchen/orgs","repos_url":"https://api.github.com/users/ZhangZhengchen/repos","events_url":"https://api.github.com/users/ZhangZhengchen/events{/privacy}","received_events_url":"https://api.github.com/users/ZhangZhengchen/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T03:29:04Z","updated_at":"2016-07-25T03:29:04Z","body":"Hi @Henry-White , It seems you didn't add the Additional Dependencies in the project. Try to add these and make sure your program can find them.\r\nEvalDll.lib\r\nCommon.lib\r\nSequenceTrainingLib.lib\r\nMath.lib\r\nComputationNetworkLib.lib\r\nActionsLib.lib"}}
{"actor":{"display_login":"ZhangZhengchen"}}