× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Bartell, Aaron L. (TC) wrote:

For anybody that has been following this thread of me not being able to read
in more than 32KB's through Standard Input, I can do it now!  <Aaron jumps
up and down>

I have tested the following code up to 11MB and it works just fine.  It may
go much further, but I don't think I will ever reach 11MB in the near future
so I didn't test it any further.

http://mowyourlawn.com/temp/CGI_readToFile.txt

Who said RPG and XML don't mix? ;-)

Aaron: Just a few comments about that code, if you don't mind:


1) In the middle of the procedure, you allocate some storage assigning the address to variable PTR. You then assign another address to PTR in the next statement, which means you lose addressability to the storage allocated.

2) A little later, there's a MONITOR group, and the ON-ERROR clause calls the exception "Error reading Standard Input". But the call to qtmhRdStin is before the start of the MONITOR group.

Since you claim your code works up to 11MB, can we assume you haven't posted the working code yet to your web site? Maybe I'm missing something, but from a quick inspection, it looks like this code can't handle files over 32K.

Cheers! Hans



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.