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


(Iouri Kloubakov) #1

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.