Variable exceeds maximum Value Initialize line 1181 (AREV Specific)
At 20 MAR 2003 12:09:18PM Jim Moss wrote:
I would really appreciate some help. Over the last couple of months, for no apparent reason when users try to login in the morning and occasionally during the day we get an error in INITILIZE that say line 1181 variable exceeds maximum value.
Also when listing programs in a table of Basic Programs, using F2 to browse, I reach a limit of 999 entries. how can I increase this or how can I get a list.
I am a novice who has inherited this application. I have no manuals.
HELP!
At 21 MAR 2003 08:00PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Jim,
The INITIALIZE routine is pertinent to your application code. Some support from the developer may be in order.
Steve
World Leaders in all things RevSoft
At 22 MAR 2003 05:59AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
http://www.revelation.com/website/discuss.nsf/search/C6B87C3C88294FFD852566BC00604846?OpenDocument provides the answer for your first predicament. For your second are you sure it only shows 999 or is it just that the popup column is only 3 wide?
World Leaders in all things RevSoft
At 25 MAR 2003 03:11PM Jim Moss wrote:
The popup shows onlt 999. How do I adjust?
At 25 MAR 2003 03:22PM Jim Moss wrote:
You have to understand that I have no experience with AR. It would be greatle appreciated if you could take me step by step through some things to try. If I can isolate the program and the source, I have a chance to fix it. I appreciate the help.
At 25 MAR 2003 04:04PM Victor Engel wrote:
When you get the Initialize error message, you are probably thrown into the debugger at the ! prompt. If not, press CTRL-Break to get to the debugger.
At the ! prompt, enter R.
This will display the program return stack. It should show what program was being executed at the time (top on the list is called by second, which was called by third, etc.). If you like, post that information here, and we can probably help you further.
Regarding a program listing. It sounds like you are doing something like this:
EDIT BP *
and then pressing F2 to get additional keys. This will only work up to 64K worth of keys. If you are limited to 999 records, that implies a mean id length of (64K - 998) / 999 or about 65 bytes each. That seems a bit excessive, but it sounds like you're talking about a file to store code. In this case, there may be symbol tables and object code as well. Assuming there is some process to filter these out, we're still left with a mean key length of over 20 bytes. That's not impossible, but it seems unlikely.
In any case, you can get a listing of your programs by simply listing them out at TCL (LIST BP if BP is the name of your file). If @ID is undefined or defined with a width that is too small, the program names will be truncated. You can override the default value by using the JUSTLEN keyword, so:
LIST BP JUSTLEN 40
You may wish to use SORT instead of LIST to get them in alphabetical order by @ID.
At this point, I would highly encourage you to get a set of Arev manuals if you don't have them already. In the mean time, if you are not already familiar with these keystrokes, learn them as a tool to get more documentation:
F1 Context senstive help
CTRL-F2 Concept help (great for getting the big picture)
CTRL-F9 (Listing of keystrokes and their use, given your current situation)
I apologize for giving you information you already know, but if you don't know it, this will take you a long way.
At 26 MAR 2003 09:01PM Jim Moss wrote:
This help is much appreciated. I will try your suggestions tomorrow. I had figured out most of the soft key functions and have educated myself on the rbasic code. I have also figured out the screen design and symbolics and embedded code in screens and fields that are available in rbasic programs. Not bad for a few hours every week or so for the past 2 months.
I have managed to get to the debugger and figured out "help" at this stage, but didn't know where to go from here. I will try the R entry and see what it yields. Once again I appreciate yours and everyones help so far.
At 27 MAR 2003 11:50AM Jim Moss wrote:
I logged in as the user having the difficulty. I get the error as defined, however it is line 1182. I get to the debugger prompt and enter R. The program name returned is RTP25. I can't find this program or processes in the bp or abp or the voc. Any ideas?
At 27 MAR 2003 12:12PM Victor Engel wrote:
RTP25 is the debugger. It is in SYSOBJ or VERBS (depending on your version). When you break to the debugger, it will appear first in the list when you type R to get the return stack. You should have received a list of programs, though, with RTP25 at the top of the list.
At 27 MAR 2003 12:13PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
As the previously reference posting stated "I don't remember which version this started in, but I've seen really strange results if the @UNAUTHORIZED_ENTRIES@ record in SYSENV got too large.". So log into SYSPROG and delete @UNAUTHORIZED_ENTRIES@ from the SYSENV table.
World Leaders in all things RevSoft
At 27 MAR 2003 02:04PM Jim Moss wrote:
I did not get a listing of programs. I simply get RTP25 only. Below is the text on the screen:-
'INITIALIZE' Line 1182. B703 Variable exceeds maximum length.
Line 1182 'DEBUGGER¦E' broke because a run time error was encountered.
!R
RTP25
!
the bottom of the screen say:-
Initialization in process
At 27 MAR 2003 03:35PM Victor Engel wrote:
If the other suggestion in this thread doesn't work, what I'd do next is start querying variables while in the debugger. I have no idea how many variables INITIALIZE uses. With line numbers in the thousands, I imagine it is quite a few. Anyway, the goal is to find a variable that is overpopulated and then inspect it to see what kind of data it may be storing.
To query variables, from the debugger prompt, enter
/1
/2
/3
etc. to query the contents of each variable. Obviously, given your error message, there is some variable that is about 64K in size. That one should be obvious when you get to it.
You might also wish to check Sprezzatura's Sysknowledge application for a flow of the initialisation process (note British spelling if you intend to use "initialisation" as a search term).
At 28 MAR 2003 02:10PM Jim Moss wrote:
I'm a novice. How do I log into sysprog?
At 28 MAR 2003 02:30PM Jim Moss wrote:
The solution you directed me too says:-
@UNAUTHORIZED_ENTRIES@ record in SYSENV got too large
How do I fix this. What are the steps to look at this record(s) in sysenv. I don't know how to do this.