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

Tomas Matousek Tomas.Matousek at microsoft.com
Mon Oct 8 12:03:39 EDT 2007

This is a known bug (IL stack needs to be empty when entering try-catch). All "invalid programs" exception are due to this bug.
The bug will take some time to fix. Until then, store values to locals if you combine calls with a block with other calls.


-----Original Message-----
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Florian Krüsch
Sent: Monday, October 08, 2007 4:42 AM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] "Common Language Runtime detected an invalid program" exception


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

I understand that IronRuby still has a way to go and that not everything's
fully implemented. However, I would expect another kind of exception...
something along "Ruby syntax error" or the like...

btw - it would be awesome to get a few pointers on the differences between
the various methods/modes of execution (Exectue, ExecuteCommand etc)


Florian Krüsch

Ironruby-core mailing list
Ironruby-core at rubyforge.org

More information about the Ironruby-core mailing list