OutOfMemoryException with wrong parameter error on Windows?

Hi,

someone saw this before?

MenuItem.Append raises OutOfMemoryException exception with error number 87, which is the Windows error code for Wrong parameter.

I would say this is wrong exception name at least.

also for

Window.Visible.Set%%oi4b

in crash logs?