[futurebasic] Re: [FB] Talkn' 'n Hangin'

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1998 : Group Archive : Group : All Groups

From: tedd@...
Date: Wed, 16 Dec 1998 17:42:53 -0500
>Safety item #1...
>
>DIM another string after b$ incase you are writing over the buffer. This
>will not correct the problem, but it will keep your machine from freezing
>up.
>
>Safety item #2...
>
>Check the LOF before you read in the data.
>
>
>-STAZ   ~)~


STAZ:

Thanks for the advise.

1. I've DIM'ed several strings after the b$ (i.e., DIM a$, b$, c$, d$, e$
-- I don't use c$, d$ or e$).

2. And, I've change my code to:

WHILE LOF(_modemPort,1)

     READ #_modemPort,b$;0

     ... evaluate b$


But, my machine still locks up.

I've placed LOF(_modemPort,1)'s everywhere trying to see if there is a
buffer over-run, but I don't see anything more than 1's and 0's.

Before, and during, successful running of my program, a PEEK(_portAUse)
renders 255. However, after a lock-up and force quit, a PEEK(_portAUse)
reports a 2. Any ideas?

Thanks.

tedd


___________________________________________________________________
<mailto:tedd@...>	               http://sperling.com/