Re: Input fails when on key calls function that opens Window.
Posted in 1996
Dave Ingledew wrote: > > Hi all you Informixers. > > I wonder if anybody has any experience of the following and any > possible work round. > > I have recently installed 4gl RDS vers 6.01 UD7 on my SCO machine. > I have previously used vers 4.11 and vers 1.03 without problem and the > operating system seems very stable, in use for 3 to 4 years. > > My problem concerns the use of an input statement, within this is an > ON KEY (F2) statement which calls a lookup function which opens a > window and provides the user with options from which they can select. > Standard stuff, I've done it hundreds of times before without problem > until today. One look up routine on returning, bombs the input > statement. The program just terminates and core dumps. > > I have tried all sorts of things. such as.. > > Stripping the lookup function to it's bare essentials, in the end I > just opened a window sleep 3 and closed it again. This didn't bomb out > immediately on returning but did when I tried to move to other fields > within the input statement. Displaying a form in the window or opening > the window with a form caused it to bomb. > > I've stripped the input statement of everything except the ON KEY > statement and that didn't cure it. I've tried not returning anything > from the lookup but to no avail. > > The only thing that seems to work is to reduce the number of fields in > the input statement. Seven fields seem secure. Eight fields and it > falls over. > > What is even more frustrating is that I use virtually the same input > routine later on in the program and it works with all eight fields. > > If I was using Windows I'd suspect that I'd run out of memeory but > surely Unix doesn't suffer from that. In any case the program is not > that large, 580 lines, 17k tiny by comparison to some of the stuff > I've written in the past. > > I would be most grateful if any body can point me to a solution. I'll > contact Informix next week but I suspect I'll get the usual guff about > sending all the source and a months wait. > > Dave Ingledew ( Very Tired Informix programmer ) Try looking in the release notes. There are a lot of incompatibilities between 4.11 and its immediate successors. Ask Informix if there are any later versions for your platform. Ian Goddard ( Also a Very Tired Informix programmer when I ran up against that 6.0x)