Re: Construct Bug
Posted in 1993
>>When I press the interrupt key in a construct, >>when the window is closed i get the following error: > >> Program stopped at "bug.4gl", line number ... >> FORMS statement error number -1141. >> Cannot close window with active INPUT, DISPLAY ARRAY >> or MENU statement. > >>Is this a known bug ? > >Yup - bug no 15976, which was apparently introduced in 4GL 4.10.UE2 - >you should be able to get around it by either getting an older >version of 4.1 4GL or a newer (fixed) version, but check with >Informix support, as we had a problem that, for the Fujitsu UXP >machine, there is only one 4GL version at present, so are waiting for >4.11.UC1. This bug is not fixed in 4.11.UC1. It is fixed in 4.11.UC2 for Sun, HP, and IBM, to my knowledge, but not on other platforms, as far as I know. It will be fixed in 4.12. >>Is there any workaround ? > >Not that I know of.... would be interested if there is one tho' Here's one, the one problem being that when this bug is fixed, you'll have to take it out again or it will screw up your windows again. Write the following little C function: #include<sqlfm.h> extern _EFwindow *_Ww_main; defercount() { (_Ww_main)->ucount--; return(0) } and modify your 4GL code as follows: open window w_main at 5,3 with form "xxx" construct where_clause on fld1, fld2 from sfld1, sfld2 if int_flag = 0 then close window w_main else let int_flag = 0 call defercount() close window w_main end if June *IYFD* <Insert Your Favorite Disclaimer> ----------------------------------------------------------------- June Tong Informix Software, Inc. Regency Support 4100 Bohannon Drive (415) 926-6433 Menlo Park, CA 94025 e-mail: junet@informix.com or uunet!infmx!junet -----------------------------------------------------------------