Subject: | setSelectTimeout() type conversion problem |
Date: | Sat, 31 May 2014 19:47:52 -0600 |
To: | bug-Finance-InteractiveBrokers-SWIG [...] rt.cpan.org |
From: | Glenn Golden <gdg [...] zplane.com> |
Hi Jason,
Regarding setSelectTimeout(): Couldn't find any "official" doc on it, but did
come across your note dated Sat Sep 07 02:00:57 2013 in Bug #79926, which
suggests that the synopsis is
setSelectTimeout($x)
where $x is in seconds. But calling it that way, regardless of the value
of $x, seems to always yield this error:
TypeError in method 'IBAPIClient_setSelectTimeout', argument 2 of
type 'time_t' at [blah]/Finance/InteractiveBrokers/SWIG.pm line 229.
Tried $x as 0, 1, 1.5, ...
Took a look at the wrapper function in IBAPI_wrap.cxx, and the underlying type
conversion routine SWIG_Perl_ConvertPtr(), but could not sort out what might
be going on leading to that error.
If you're not able to reproduce this, let me know how I can go about tracking
it down further on my end.
Perl version = 5.18.2.
Thanks,
Glenn