From Xojo Documentation

Class (inherits from RuntimeException)

New in 2011r3

Occurs when code tries to use the same MenuItem in different places.

ErrorNumber Message Reason fa-lock-32.png
Stack StackFrames

Sample Code

Whenever you need to use the same MenuItem in different places, use the Clone method to create a new copy of the MenuItem and its children, if any.

Var mi As New MenuItem("My menu item")
Var myClone As MenuItem

myClone = mi.Clone //Creates an independent copy of "mi"

See Also

MenuItem, RuntimeException classes; Function, Catch, Raise statements; Nil datatype; Exception, Try statements.