>As expected. After Retry COUNT command has no alias, so it pops up the open dialog box. Cancel on that open dialog box will cause error again and that time it will return correctly. I assume you write this for WWC, so open dialog box will not appear but error will be generated because no output is allowed in the COM server.
To my knowledge, whenever a table is not opened and that we make reference to it, a dialog will popup and that will hang the server under COM.