Ruby/.NET Bridge question (www.saltypickle.com/rubydotnet)

Hi,

Did anyone try to add a message filter to the Application?
The following code crashes with a System.ExecutionEngineException:

require ‘dotnet’

loadLibrary ‘System.Windows.Forms’

class MessageFilter
def PreFilterMessage(m)
false
end
end

Application.AddMessageFilter(MessageFilter.new)
Application.run()

Thanks,
Yura.