[Ironruby-core] "Common Language Runtime detected an invalid program" exception

Curt Hagenlocher curt at hagenlocher.org
Mon Oct 8 08:31:32 EDT 2007


On 10/8/07, Florian Krüsch <florian at kruesch.de> wrote:
>
>
> I'm playing with IronRuby and love it.
> Playing around I obviously did something that's not yet implemented and
> got the exception "Common Language Runtime detected an invalid program"
> The code is:
> result = (Proc.new { |value| value.to_s*2 }).call value


This looks very much like a bug and not an unimplemented feature.  The error
message suggests that there's some invalid IL being emitted.  If you split
the code into two lines
    p = Proc.new{ |value| value.to_s*2}
    result = p.call value
it works correctly.

You can submit this as a bug here:
http://rubyforge.org/tracker/?atid=16798&group_id=4359&func=browse

--
Curt Hagenlocher
curt at hagenlocher.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071008/ee906a90/attachment.html 


More information about the Ironruby-core mailing list