Oh wonderful.. a whole new facet to the puzzle, I thought you had not been opening a window object.
No.. I'm not using a halt.
It's the standard generated menu, so it's just doing a Close( ParentWindow)
And when I have the window close right away I just put a close( this) into the open event of the standard generated w_genapp_main.
I made a whole new window (type main!).. only thing on it is a button that has a close( parent) in it's script and had by application object open that window instead.
Same result.. returned value is 0
This is back to being weird.