Subject: RE: [U2] Type ahead buffer overflow
Agreed. You may find tho', that the extra call out to TRIM may cause the
input loop to be too slow to collect all the incoming data. Better to get
the data, then trim as you process it...
Your loop doesn't cater for 80 col lines (or whatever length
Can't you simply paste into a text file in a type 1 directory, and then read
and process the input?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Dodds
Sent: 25 February 2008 07:41 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Type ahead buffer
in a cut 'n' paste operation!
:)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis Bartlett
Sent: Tuesday, 26 February 2008 7:13 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Type ahead buffer overflow
Can't you simply paste into a text file
by Design!
-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-u2-
[EMAIL PROTECTED] On Behalf Of Tom Dodds
Sent: Tuesday, 26 February 2008 9:31 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Type ahead buffer overflow
The test we have run seems to indicate that the data loss start
A! OK, so with your 500 lines of data, is it a single INPUT
statement for all 500 lines? Or a loop over INPUT?
AND
500 lines of 80 COL wide
If so, then the code you're looking for is
LOOP
INPUT LN, 80
IF TRIM(LN) = '' THEN EXIT
GOSUB PROCESS.LINE
REPEAT
That way the INPUT
Agreed, a UD DIR-type file (called type 19 in UV) in the middle might
solve the issue nicely. Instead of an input statement, the UniBasic
program would simply read the record from the DIR-type file.
The heavy lifting involves passing the data into the DIR-type file.
Several possibilities come to
] On Behalf Of Dennis Bartlett
Sent: Tuesday, February 26, 2008 9:00 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Type ahead buffer overflow
A! OK, so with your 500 lines of data, is it a single INPUT
statement for all 500 lines? Or a loop over INPUT?
AND
500 lines of 80 COL wide
: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Stokes
Sent: 26 February 2008 06:26 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Type ahead buffer overflow
That is very similar to the one I use. Here is mine.
REC = ''
LOOP
INPUT XXX
UNTIL XXX = *NED OF TEXT* DO
REC-1 = XXX
I have had little to no success over the years in trying to convince various
flavors of PICK to honor long strings passed in. The stty settings guarantee
that the O/S gets the data, but does NOT guarantee that PICK can handle the
long string.
What has always worked for us is to insert CRs
Is it losing data at the end, or dropping characters in the middle? If the
latter, check your emulation software and see if you can either slow down the
data transfer rate, or insert pauses every so often. I think ViaDuct has an
options, for example, for the data transmit rate (in it's
Thanks for the reply, it may be something we can work out.
Tom Dodds
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Houben
Sent: Monday, February 25, 2008 12:44 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Type ahead buffer overflow
I
How large is the data?
How are you receiving the data?
The routines I use hold several pages.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Dodds
Sent: Monday, February 25, 2008 12:41 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Type ahead
tOM,
Do not rule out AIX as being part of the problem. I encountered an issue with
AIX
having a buffer overrun when dealing with a large paste into an input in
UniVerse.
I was able to diagnose the isse for IBM by using a packet sniffer to track
exactly
what was sent to the AIX machine, and
What terminal emulation product are you pasting into? There may be
some options that can be used to control fast pastes are done ...? and
if there aren't, if it provides some form of scripting you may be able
to paste into something else, and then funnel this data across to your
connection under
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Stokes
Sent: Monday, February 25, 2008 2:50 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Type ahead buffer overflow
How large is the data?
How are you receiving the data?
The routines I use hold
I've tried pasting a large amount of @IDs into and edit list, and UniVerse
will only handle about 2500 lines before dropping data.
For instance, I did a LIST FILE EVAL @NI SAMPLE 5000, and cut and pasted
that into EDIT.LIST LOUIEB, and it started dropping lines at 2519.
Quite annoying.
2517=
Large Select Lists in UniVerse are saved using multiple files in SAVEDLISTS.
Try doing a large save to learn the naming convention. What you tried explored
- indeed, found - the upper limit on the size of one of those files.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To
17 matches
Mail list logo