Re: INFORMIX RUN COMMAND ERROR
Posted in 1996
In article <4qou7i$chb@cssun.mathcs.emory.edu>, John F. Huggins <jhuggins@trinidad.net> wrote: >I recently upgraded my development platform from INFORMIX-SE 5.03 and >INORMIX-RDS 4.12 to SE 5.06 and RDS 4.14 and code compiled on 4.12 just does >not run on 4.14(recompiled of course).. > >I narrowed down the one of the problems to the RUN command RETURNING variable.. >It seems that the RUN command works well as long as you don't return an exit >value, which in my case is vital. Has there been a syntax change or is >there a genuine problem with this version of compiler.. > >John >email :- jhuggins@trinidad.net You may be hitting bug 42571 (fixed in the 4.16/6.04 release): 42571 CORE RUN PROGRAM RETURNING INTEGER VALUE DUMPS CORE WITH SEGMENTATION FAULT If you use the RUN program RETURNING integer_value syntax to execute another 4GL program the second program will run but a segmentation fault core dumped error occurs when the second program exits. Control does not return to the calling program. The following will reproduce the problem ... # prog1 MAIN DEFINE prog2 CHAR ( 20 ), stat_code INTEGER DISPLAY "Main Program ... " SLEEP 2 LET prog2 = "fglgo prog2" RUN prog1 RETURNING stat_code DISPLAY stat_code SLEEP 2 END MAIN # prog2 MAIN DEFINE ret_int INTEGER LET ret_int = 5 EXIT PROGRAM ( ret_int ) END MAIN >This is my first question on this environment.. My problem is this.... Generally, it's not allowed to find a genuine bug on your first attempt here. Don't let it happen again. [-: -- (c) 1996 Alan Denney aland@informix.com On the 12/1/95 "NewsHour with Jim Lehrer", a story about Whitewater included an interesting close-caption error: the name "Madison Guaranty" was close-captioned as "Greg Maddux".