.NET Framework 4.0 Application Runtime Exceptions Problem
2012-02-07 05:03:27 GMT
Hello, I have been working with QuantLib since Oct'11 and I think it works great. I used it with .NET Framework 3.5 and it worked perfectly. I use QuantLib and SWIG for C#. Now I am developing a .NET Framework 4 WPF application with some Quantlib Bond Calculations and I am having some problems: When I make some testing, each time the app tries to create any QuantLib object or tries to execute any method it throws this exception (click on name for description): http://msdn.microsoft.com/es-es/library/0htdy0k3%28v=vs.100%29.aspx pInvokeStackImbalance When I try the application on Visual Studio and I have PInvolkeStackImbalance activated on MDA exceptions, I use to receive several PInvoke warnings (green coloured) on each execution, but application works perfectly. But when I try to execute on Windows, those warnings are exceptions that cause application to crash. I tried to fix it making some modifications on QuantLib_vc10 project. I found at other forum this solution for the exception we are talking about: On each dll method call defined on NQuantLibcPINVOKE that throws the exception, like this: [DllImport("NQuantLibc", EntryPoint="CSharp_new_TARGET")](Continue reading)
RSS Feed