Error with calendar_.advance function

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error with calendar_.advance function

Ben Khosrownia
Hi:

I am getting this strange problem with a date object.
I stepped thru the code and found that px is invalid
for a calendar object and as a result Boost throws
exception.

Please look at the bitmap for further information.

I appreciate your input on this.

Thank you;

Ben

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

Calendar_Error.JPG (55K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error with calendar_.advance function

Luigi Ballabio
On Mar 17, 2006, at 7:23 PM, Ben Khosrownia wrote:
> I am getting this strange problem with a date object.
> I stepped thru the code and found that px is invalid
> for a calendar object and as a result Boost throws
> exception.

How did you initialize the DepositRateHelper? What calendar did you
pass to the constructor?

Luigi



Reply | Threaded
Open this post in threaded view
|

Re: Error with calendar_.advance function

Ben Khosrownia
I will look into it and will give more info.

Thank you;

Ben

--- Luigi Ballabio <[hidden email]> wrote:

>
> On Mar 17, 2006, at 7:23 PM, Ben Khosrownia wrote:
> > I am getting this strange problem with a date
> object.
> > I stepped thru the code and found that px is
> invalid
> > for a calendar object and as a result Boost throws
> > exception.
>
> How did you initialize the DepositRateHelper? What
> calendar did you
> pass to the constructor?
>
> Luigi
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by xPML, a
> groundbreaking scripting language
> that extends applications into web and mobile media.
> Attend the live webcast
> and join the prime developer group breaking into
> this new coding territory!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Quantlib-users mailing list
> [hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


Reply | Threaded
Open this post in threaded view
|

Re: Error with calendar_.advance function

Ben Khosrownia
In reply to this post by Luigi Ballabio
It happened that I was passing an invalid calendar
object pointer (from .NET application) to our C++
QuantLib wrapper dll. As a result DepositRateHelper
object contained an invalid calendar object.

Thanks for your responses, it helped me to isolate the
problem.

Ben

--- Luigi Ballabio <[hidden email]> wrote:

>
> On Mar 17, 2006, at 7:23 PM, Ben Khosrownia wrote:
> > I am getting this strange problem with a date
> object.
> > I stepped thru the code and found that px is
> invalid
> > for a calendar object and as a result Boost throws
> > exception.
>
> How did you initialize the DepositRateHelper? What
> calendar did you
> pass to the constructor?
>
> Luigi
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by xPML, a
> groundbreaking scripting language
> that extends applications into web and mobile media.
> Attend the live webcast
> and join the prime developer group breaking into
> this new coding territory!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Quantlib-users mailing list
> [hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com