Re: C# - SWIG

Posted by sachurao on
URL: http://quantlib.414.s1.nabble.com/C-SWIG-tp8172p8173.html

Hi I'm getting the same error as well and I don't think it is related to the Date constructor.  The first call in my code is creating a calendar and it throws the same exception:

Calendar c = new UnitedStates();

Are we aware of any solution for this?  It might be that I'm not set up correctly.  I've just downloaded the swig classes, compiled it and am now using the NQuantLib.dll.  Is there anything else that needs to be done? How do I verify whether the original c++ lib has been installed correctly on my machine?

Sachin
Siddharth Sharma-2 wrote
Hi, I'm using C# 2005 Express edition. When I try to compile the following
code:

QuantLib.Date x = new QuantLib.Date(39119);

I get the following error at runtime:

"The type initializer for 'QuantLib.NQuantLibcPINVOKE' threw an
exception."


In my project, I am referencing the C# wrapper NQuantlib.dll  from
Quantlib-SWIG-0.3.14

Could someone please let me know why this exception is being thrown and
what I can do to fix it?

regards

Sid

---

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sourceforge.net/mailarchive/forum.php?forum=quantlib-users/attachments/20070206/7b7deeb3/attachment.html 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users