{"action":"created","issue":{"url":"https://api.github.com/repos/lballabio/quantlib/issues/301","labels_url":"https://api.github.com/repos/lballabio/quantlib/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/lballabio/quantlib/issues/301/comments","events_url":"https://api.github.com/repos/lballabio/quantlib/issues/301/events","html_url":"https://github.com/lballabio/quantlib/issues/301","id":104716672,"number":301,"title":"BUG: C# - SWIG - Unable to Run both 1.6.x and quantlib-master","user":{"login":"vinaydwivedi","id":9931326,"avatar_url":"https://avatars.githubusercontent.com/u/9931326?v=3","gravatar_id":"","url":"https://api.github.com/users/vinaydwivedi","html_url":"https://github.com/vinaydwivedi","followers_url":"https://api.github.com/users/vinaydwivedi/followers","following_url":"https://api.github.com/users/vinaydwivedi/following{/other_user}","gists_url":"https://api.github.com/users/vinaydwivedi/gists{/gist_id}","starred_url":"https://api.github.com/users/vinaydwivedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinaydwivedi/subscriptions","organizations_url":"https://api.github.com/users/vinaydwivedi/orgs","repos_url":"https://api.github.com/users/vinaydwivedi/repos","events_url":"https://api.github.com/users/vinaydwivedi/events{/privacy}","received_events_url":"https://api.github.com/users/vinaydwivedi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-03T15:05:49Z","updated_at":"2015-09-08T03:40:10Z","closed_at":"2015-09-04T12:30:12Z","body":"A call to PInvoke function 'NQuantLib!QuantLib.NQuantLibcPINVOKE::new_Date__SWIG_1' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.\r\n\r\nFollowing is what I did-\r\n- Set QL_DIR environment directory to ../QuantLib folder.\r\n- Compile QuantLib in both Release/Debug Mode.\r\n- Run swig.cmd under ../QuantLib-SWIG\\CSharp\r\n- Compile and Run BermudanSwaption Project under ../QuantLib-SWIG\\CSharp VS 2010 solution.\r\n\r\n-- I am using Visual Studio 2010\r\n\r\nI also downloaded pre built solution from Following for V1.6 and 1.5 - Both throwing same exception\r\n\r\nhttp://sourceforge.net/projects/quantlib/files/QuantLib/1.6/other%20languages/\r\n\r\nUsing Boost 1.7, and for C# wrappers, I used SWIG swigwin-3.0.7\r\n\r\nCould you advice please?\r\n"},"comment":{"url":"https://api.github.com/repos/lballabio/quantlib/issues/comments/138421679","html_url":"https://github.com/lballabio/quantlib/issues/301#issuecomment-138421679","issue_url":"https://api.github.com/repos/lballabio/quantlib/issues/301","id":138421679,"user":{"login":"vinaydwivedi","id":9931326,"avatar_url":"https://avatars.githubusercontent.com/u/9931326?v=3","gravatar_id":"","url":"https://api.github.com/users/vinaydwivedi","html_url":"https://github.com/vinaydwivedi","followers_url":"https://api.github.com/users/vinaydwivedi/followers","following_url":"https://api.github.com/users/vinaydwivedi/following{/other_user}","gists_url":"https://api.github.com/users/vinaydwivedi/gists{/gist_id}","starred_url":"https://api.github.com/users/vinaydwivedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinaydwivedi/subscriptions","organizations_url":"https://api.github.com/users/vinaydwivedi/orgs","repos_url":"https://api.github.com/users/vinaydwivedi/repos","events_url":"https://api.github.com/users/vinaydwivedi/events{/privacy}","received_events_url":"https://api.github.com/users/vinaydwivedi/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T03:40:10Z","updated_at":"2015-09-08T03:40:10Z","body":"\r\n Access Violation still exists - Very hard to reproduce... often involves simulating a heavy load.\r\n\r\nhttps://github.com/lballabio/quantlib/issues/306"}}