I am working on a c++ application in visual studio 2015 and got a requirement to add a C# project to my application and call those C# functions from my c++ project.
But there is a case where one particular .net function is not getting called from my c++ project. After debugging i under stood that, that .net function has a call as follows:
public void DotNetFun()
The Sample is a class and Open is a static member function in .net project. This function is available from a third party dll. No source code available with us.
why this function (DotNetFun()) is not getting called? If i remove the statement Sample.Open() from that DotNetFun() then this function is getting called.
What I have tried: