{"action":"created","issue":{"url":"https://api.github.com/repos/KjellKod/g3log/issues/61","labels_url":"https://api.github.com/repos/KjellKod/g3log/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/KjellKod/g3log/issues/61/comments","events_url":"https://api.github.com/repos/KjellKod/g3log/issues/61/events","html_url":"https://github.com/KjellKod/g3log/issues/61","id":118529585,"number":61,"title":"Exception in msvc2013","user":{"login":"cstamatopoulos","id":1109262,"avatar_url":"https://avatars.githubusercontent.com/u/1109262?v=3","gravatar_id":"","url":"https://api.github.com/users/cstamatopoulos","html_url":"https://github.com/cstamatopoulos","followers_url":"https://api.github.com/users/cstamatopoulos/followers","following_url":"https://api.github.com/users/cstamatopoulos/following{/other_user}","gists_url":"https://api.github.com/users/cstamatopoulos/gists{/gist_id}","starred_url":"https://api.github.com/users/cstamatopoulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstamatopoulos/subscriptions","organizations_url":"https://api.github.com/users/cstamatopoulos/orgs","repos_url":"https://api.github.com/users/cstamatopoulos/repos","events_url":"https://api.github.com/users/cstamatopoulos/events{/privacy}","received_events_url":"https://api.github.com/users/cstamatopoulos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-24T04:30:37Z","updated_at":"2015-11-25T03:25:53Z","closed_at":null,"body":"I am not sure why this happens but the code below throws an exception in msvc2013 but it is all good in 2015. The exception is thrown at the lock in shutDownLogging.\r\n\r\n    auto worker = g3::LogWorker::createLogWorker();\r\n\r\n    int main(int argc, char* argv[])\r\n    {\r\n    \tusing namespace g3;\r\n    \tauto defaultHandler = worker->addDefaultLogger(argv[0], \"./\");\r\n    \tg3::initializeLogging(worker.get());\r\n    }\r\n\r\nNow you might ask why someone would want to do that but unfortunately for old apps with MFC there is no main function, just a WinMain which you dont have access to."},"comment":{"url":"https://api.github.com/repos/KjellKod/g3log/issues/comments/159477480","html_url":"https://github.com/KjellKod/g3log/issues/61#issuecomment-159477480","issue_url":"https://api.github.com/repos/KjellKod/g3log/issues/61","id":159477480,"user":{"login":"cstamatopoulos","id":1109262,"avatar_url":"https://avatars.githubusercontent.com/u/1109262?v=3","gravatar_id":"","url":"https://api.github.com/users/cstamatopoulos","html_url":"https://github.com/cstamatopoulos","followers_url":"https://api.github.com/users/cstamatopoulos/followers","following_url":"https://api.github.com/users/cstamatopoulos/following{/other_user}","gists_url":"https://api.github.com/users/cstamatopoulos/gists{/gist_id}","starred_url":"https://api.github.com/users/cstamatopoulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstamatopoulos/subscriptions","organizations_url":"https://api.github.com/users/cstamatopoulos/orgs","repos_url":"https://api.github.com/users/cstamatopoulos/repos","events_url":"https://api.github.com/users/cstamatopoulos/events{/privacy}","received_events_url":"https://api.github.com/users/cstamatopoulos/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T03:25:53Z","updated_at":"2015-11-25T03:25:53Z","body":"I've created a full solution for you so you just have to open the .sln file and run it without the need of setting up anything in msvc. The g3log current master has been added to the solution.\r\nInclude/ input libs have only been set for the x64 configurations.\r\nThe debug version will crash while the release version hangs.\r\n\r\nLink added to my bod as you cannot added anything but basic files here.\r\nhttps://app.box.com/s/b77cfvwu6b682ihcfiai6424k8y53y20\r\n\r\nIf you just want the main.cpp I can provide that it really is just a few lines"}}