[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Runtime error after moving to 1.8.7

Gerardo Santana Gómez Garrido

12/19/2008 4:55:00 PM

Ruby/Informix works fine on Ruby 1.8.6, but after installing Ruby
1.8.7 and calling CursorBase#drop I get the following error message

wrong number of arguments (0 for 1) (ArgumentError)

CursorBase#drop is declared as
[http://github.com/santana/ruby-informix/tree/master/ext/informi...]

rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);


Thanks in advance for any help
--
Gerardo Santana

4 Answers

Roger Pack

12/27/2008 12:06:00 AM

0


>
> Thanks in advance for any help
could ask core
--
Posted via http://www.ruby-....

Gerardo Santana Gómez Garrido

1/15/2009 3:37:00 PM

0

Thanks Roger!

On Fri, Dec 26, 2008 at 6:05 PM, Roger Pack <rogerpack2005@gmail.com> wrote:
>
>>
>> Thanks in advance for any help
> could ask core
> --
> Posted via http://www.ruby-....
>
>



--
Gerardo Santana

Michal Suchanek

1/16/2009 1:38:00 PM

0

On 19/12/2008, Gerardo Santana G=C3=B3mez Garrido <gerardo.santana@gmail.co=
m> wrote:
> Ruby/Informix works fine on Ruby 1.8.6, but after installing Ruby
> 1.8.7 and calling CursorBase#drop I get the following error message
>
> wrong number of arguments (0 for 1) (ArgumentError)
>
> CursorBase#drop is declared as
> [http://github.com/santana/ruby-informix/tree/master/ext/inform...
32]
>
> rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);
>

You did not provide enough information (such as the failing method or
the full backtrace) for diagnosing the problem.

In general it is not unusual for code that works fine on 1.8.6 to fail
on 1.8.7 or the other way around as there are several incompatible
changes between these two versions.

You are probably using a stdlib method that has changed.

Thanks

Michal

Gerardo Santana Gómez Garrido

1/16/2009 6:53:00 PM

0

On Fri, Jan 16, 2009 at 7:38 AM, Michal Suchanek <hramrach@centrum.cz> wrot=
e:
> On 19/12/2008, Gerardo Santana G=F3mez Garrido <gerardo.santana@gmail.com=
> wrote:
>> Ruby/Informix works fine on Ruby 1.8.6, but after installing Ruby
>> 1.8.7 and calling CursorBase#drop I get the following error message
>>
>> wrong number of arguments (0 for 1) (ArgumentError)
>>
>> CursorBase#drop is declared as
>> [http://github.com/santana/ruby-informix/tree/master/ext/infor...
332]
>>
>> rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);
>>
>
> You did not provide enough information (such as the failing method


As mentioned above, CursorBase#drop is the failing method as in it's
the one that raises the unexpected exception when it's called.
CursorBase#drop is declared as recieving no arguments but it asks for
one anyways in Ruby 1.8.7. This is not the case in Ruby 1.8.6.

I'm providing also the declaration line

http://github.com/santana/ruby-informix/tree/master/ext/informi...

which says


rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);


You see?, it's declared as receiving no arguments. It works as
advertised in Ruby 1.8.6. It doesn't in Ruby 1.8.7.



> or
> the full backtrace) for diagnosing the problem.

Let me work on that and mail you back.

>
> In general it is not unusual for code that works fine on 1.8.6 to fail
> on 1.8.7 or the other way around as there are several incompatible
> changes between these two versions.
>
> You are probably using a stdlib method that has changed.
>
> Thanks
>
> Michal
>
>

Thanks Michal for your attention. Actually I'm just using the
rb_define_method function to define a method as receiving no arguments
but it's asking for one anyways.


Thanks in advance for your help.
--=20
Gerardo Santana