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 [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Tue, 2007-02-06 at 12:57 +0530, Siddharth Sharma 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." Siddharth, I'll try to reproduce the error as soon as I get some time. In the meantime: 1) did you make sure that NQuantlib.dll is available in your PATH? 2) does the same error occur if you try QuantLib.Date x = new QuantLib.Date(6,Month.February,2007); instead? Later, Luigi ---------------------------------------- The first thing we do, let's kill all the lawyers. -- W. Shakespeare, "King Henry VI, Part II" ------------------------------------------------------------------------- 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by Siddharth Sharma-2
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
|
On Tue, 2009-10-06 at 06:05 -0700, sachurao wrote:
> 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. Do the distributed examples work? They should when they're launched from the IDE. Luigi -- There are two ways to write error-free programs; only the third one works. -- unknown ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |