GUI not work after building

hello, everyone! I create a 'menuframework ’ using gui, it works well in debug mode,but after building it, the menuItem can not shown when i click popupMenu. here is the diagram:

alt text

When i click file, the ‘Exit’ button do not show in release mode,but in debug mode!I have no idea now,any answer will be appreciated!

The real reason is that i put the Input.GetMouseButtonDown function in OnGUI function!