Re: calendar problem when calling quantlib lib from java

Posted by moloko on
URL: http://quantlib.414.s1.nabble.com/calendar-problem-when-calling-quantlib-lib-from-java-tp5595p5601.html

Hi Luigi,

I'm already triing to catch the exception, but my console freeze

try{
boost::shared_ptr<RateHelper> depositRateHelper(new DepositRateHelper(
Handle<Quote> (depositRateQuote),term,2,calendar ,BdConv ,true,2,dayCounter) );
}
catch(std::exception& e){
std::cout << "Prblm depositratehelper: " << e.what() << std::endl;
return JNI_FALSE;
}

If you have some time to try the sample I've sent and updated on the mailling
list

Anyway, we will try to make a sample with the SWIG interface, but I think we
have the same kind of problem as it's still using JNI, isn't it ?


Regards

Pierre


Selon Luigi Ballabio <[hidden email]>:

> On Thu, 2008-02-21 at 06:22 -0800, moloko wrote:
> > So, unfortunately, the problem is now with another structure:
> > boost::shared_ptr<RateHelper> depositRateHelper(new DepositRateHelper(
>
> Pierre,
> what is the problem now? Does it compile? Does it give any error
> message when it runs? (You can check by catching any exceptions and
> printing the message, as in:
>
> try {
>     boost::shared_ptr<RateHelper> depositRateHelper(...);
> } catch (std::exception& e) {
>     std::cout << e.what() << std::endl;
> }
>
> Luigi
>
>
> --
>
> Green's Law of Debate:
> Anything is possible if you don't know what you're talking about.
>
>
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users