I wonder if anyone can rescue me from this?
My application can be run by all intranet users from a central server. It consists of one window that I've made the top window, and I've hidden the screen. This means that the active window has to be modeless, and I've had to issue READ EVENTS in the calling program. Because the screen isn't visible, I had to put CLEAR EVENTS in all terminating buttons, and, originally, I disabled the close button of the window so that you were forced to exit via one of the terminating buttons, thereby ensuring that FoxPro got shut down properly.
One of the things you can do is to browse the database, but because it tries to make the browse window bigger than the active window, I had to enable the maximise button. When you use that on the browse window it hijacks the controls of the active window, and the only way to clear the browse window was to re-enable the close button of the active window. Unfortunately it turns out that pressing the only visible close button closes both the browse window AND the active window, and I hadn't put a CLEAR EVENTS in the destroy event of the active window.
So FoxPro has locked up on the server. Any terminal running the program cannot be closed down because it gets a 'Cannot Quit FoxPro' message, and you have to resort to hold the power button off for 5 seconds. Well, that's sort of OK, though tiresome, and the main server seemed at first to be happy to keep on opening fresh FoxPro sessions. But it's now becoming fractious.
The Administrators in their most draconian mode can't remove the offending .EXE file, and I can't get rid of it from DOS either - you just get a sharing violation message. The Network manager says that the only thing to do is to re-boot the server, and he's not terribly happy about that. As a short-term measure I've put a new version of the application on the server and suggested the the users (happily only about a dozen at the moment) that they create a new shortcut and delete the old one. But what I'd really like to do is to remove the offending program. Does anyone know how to get out of a READ EVENTS loop when you haven't got a screen to put a command window on?
Tony Ayres
My application can be run by all intranet users from a central server. It consists of one window that I've made the top window, and I've hidden the screen. This means that the active window has to be modeless, and I've had to issue READ EVENTS in the calling program. Because the screen isn't visible, I had to put CLEAR EVENTS in all terminating buttons, and, originally, I disabled the close button of the window so that you were forced to exit via one of the terminating buttons, thereby ensuring that FoxPro got shut down properly.
One of the things you can do is to browse the database, but because it tries to make the browse window bigger than the active window, I had to enable the maximise button. When you use that on the browse window it hijacks the controls of the active window, and the only way to clear the browse window was to re-enable the close button of the active window. Unfortunately it turns out that pressing the only visible close button closes both the browse window AND the active window, and I hadn't put a CLEAR EVENTS in the destroy event of the active window.
So FoxPro has locked up on the server. Any terminal running the program cannot be closed down because it gets a 'Cannot Quit FoxPro' message, and you have to resort to hold the power button off for 5 seconds. Well, that's sort of OK, though tiresome, and the main server seemed at first to be happy to keep on opening fresh FoxPro sessions. But it's now becoming fractious.
The Administrators in their most draconian mode can't remove the offending .EXE file, and I can't get rid of it from DOS either - you just get a sharing violation message. The Network manager says that the only thing to do is to re-boot the server, and he's not terribly happy about that. As a short-term measure I've put a new version of the application on the server and suggested the the users (happily only about a dozen at the moment) that they create a new shortcut and delete the old one. But what I'd really like to do is to remove the offending program. Does anyone know how to get out of a READ EVENTS loop when you haven't got a screen to put a command window on?
Tony Ayres