[#237] object.c ruby.h (fwd) — Robert Skarwecki <skaav@...>

Hello everybody,

42 messages 2002/07/24
[#239] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/24

At Thu, 25 Jul 2002 00:02:28 +0900,

[#240] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/24

GOTO Kentaro <gotoken@notwork.org> writes:

[#246] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/25

At Thu, 25 Jul 2002 05:05:46 +0900,

[#247] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

GOTO Kentaro <gotoken@notwork.org> writes:

[#248] Re: [PATCH] object.c ruby.h (fwd) — nobu.nokada@... 2002/07/25

Hi,

[#249] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

nobu.nokada@softhome.net writes:

[#250] Re: [PATCH] object.c ruby.h (fwd) — nobu.nokada@... 2002/07/25

Hi,

[#252] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/25

At Fri, 26 Jul 2002 03:11:02 +0900,

[#253] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

GOTO Kentaro <gotoken@notwork.org> writes:

Re: A couple of questions on writing extensions

From: Matthew Bloch <mattbee@...>
Date: 2002-07-25 22:38:46 UTC
List: ruby-core #256
On Thursday 25 July 2002 22:09, Matthew Bloch wrote:
> *) what does 'Died with exception wrong argument type Object (expected
> Data)' mean?  Isn't everything an object?  Since converting a Ruby class to
> C for performance reasons, while debugging, I've this exception raised at
> random points in my program, e.g. reported as being thrown from the fairly
> innocuous:
>
>   key.gsub!(/\//, File::SEPARATOR)
>
> which is nothing to do with my converted class, but the error implies 'key'
> is somehow corrupt or of the wrong type, where the same code worked before.
> This exception seems to be thrown from different points depending on timing
> (though more often than not in a simple call to a logger), which is pretty
> difficult to track down.

A bit more information: if I put a "print key.type" statement before & after 
this line, I see "String" twice, as expected, and the bug disappears and pops 
up at another point in the program, later on in the execution.  I realise 
you've got to be careful writing native language extensions, but this is 
pretty weird :)

-- 
Matthew       > http://www.soup-kitchen.net/
              > ICQ 19482073

In This Thread