BBS: Inland Empire Archive
Date: 10-26-92 (09:21) Number: 335
From: JERRY HUNTER Refer#: NONE
To: BILL HENNING Recvd: NO
Subj: Darkstar! Conf: (2) Quik_Bas
> Ok, here's exactly what I do:
> When it is ready to end, it comes to these lines...
I assume you've opened COM2 as #1 up here somewhere...
> DEF SEG=&H40
> CLOSE #1
> OUT PortAddr% + 4, 3
> OPEN "COM2:" FOR INPUT AS #1 <--- here's your problem...
> I made a typing mistake.. ProtAddr% up there is actually
> PortAddr%. Whenever I do this, it hangs up. I tried
> setting S25 even as high as 200, but it didn't help any
> other than delaying the time it takes to hang up. Any
Grin. Ok, Bill. When it's "ready to end", DTR has been
slammed high on &H2F8. Which is COM2. But you've reopened
COM2. So normal housekeeping is done by QB...
Y'see, when QB ends execution of a program, she closes all
open ports FOR you (and dumps DTR on
COM2 which was opened just before your END statement,
thereby dumping DTR.
Go ahead and CLOSE it as you have... but do NOT reopen it
before the END, lest QB spite you on program termination.
You MUST close the port and slam DTR high in order to
preserve CD so you can pick it up later in whatever code
you execute next...
--- GEcho 1.00/beta
* Origin: DarkStar - Where OnLine MultiMedia begins! (1:391/2090)