Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!cbmvax!carolyn From: carolyn@cbmvax.UUCP Newsgroups: comp.sys.amiga Subject: Re: How much of the console.device do I need to close? Message-ID: <1931@cbmvax.cbmvax.cbm.UUCP> Date: Tue, 26-May-87 17:44:14 EDT Article-I.D.: cbmvax.1931 Posted: Tue May 26 17:44:14 1987 Date-Received: Wed, 27-May-87 06:43:33 EDT References: <8705250859.AA07959@violet.berkeley.edu> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 35 In article <8705250859.AA07959@violet.berkeley.edu> mwm@VIOLET.BERKELEY.EDU (Mike Meyer, My watch has windows) writes: >In article <3665@jade.BERKELEY.EDU> I wrote asking for a way to >close and reopen a window with a console driver attached without >having to recreate the IOStdReq & Ports associated with it. > >Leo Schwab suggests: > >>> Have you tried zeroing out the IOStdReq before re-using it? > >Nice idea, but it doesn't work. I even went so far (finally) as to >DeleteStdIO on the IOStdReq structs, and then CreateStdIO on them when >the window was opened. > >It no work. The last character typed still shows up in the input >buffer of the new window. Also, the system crashes after a couple of >open/close cycles. Haven't done it myself but my guess is that your failure to Remove the initial request is causing the problems. I suggest trying the same code used for aborting and removing an asynchronous printer request: /* ior is your pointer to your console read IORequest */ if(!(CheckIO(ior)) { AbortIO(ior); } WaitIO(ior); /* Removes the request */ -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=