Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming Read Error

Status
Not open for further replies.

giridpi

Programmer
Dec 5, 2003
33
IN
I am using foxpro2.6 dos. When i run first time thorugh menu the program contains "Too many reads Error". Next i am tried to run through command wind no error will found. more 5 reads using in many windows.

Please give me suggestion to solve this prob.

Giri
 
The maximum of nested reads is 5, when you have more you'll get this error.

Rob.
 
Thank U Rob,

I must to use more than 5 reads what can in do.
 
Show us a piece of your code, where you exceed the 5 limit...

Rob.
 
I agree with Rob, it's a rare case when you "really" need that many reads. If you do, you'll need to create a read handler that essentially keeps track of the read levels in use and then kills the last READ when you need a new one and reinitializes it when you are done with the current level. (It's really messy code and can require a lot of rewriting if the "need" is in more than one specific circumstance.)

Rick
 
rgbean:

Could you please tell how to do so. I have (always had) a problem with the read limit.

I am currently working on a program which is basically a blank screen with a menu. From the menu you select which part of the program you want and the screen for it comes up.

After selecting 5 screens I get the dreaded error. I have in the past been able to do work arounds where I use timeout and other non-real screens, but I can't really do so in this case.

The main problem is that there is no way to terminate the former read while going into the new read - the older reads are only killed when I go backwards.

So how can I kill the read for the currently screen when going into a new screen using the menu to do so.


Thanks in a big way in advance if you can help this thing that has plagued me for over 10 years.


B"H
Brak
 
" I have (always had) a problem with the read limit. After selecting 5 screens I get the dreaded error.
"


One of the best ways to eliminate the problem going forward is to consider re-designing your application so that it eliminates the need to have so many screens open concurrently within your application.

Things like consolidating screens by making Screen Sets which combine individual screen functionality into a single screen or by utilizing GENSCRNX might help.

Good Luck,


JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top