segmentation fault
Posted in 2009
Topics: Installation, Setup & Upgrades, Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL, Networking & sqlhosts Configuration, Platform-Specific Issues
Dear Sir,
I posted a message over the above problem but, I have had no feed back. Here
is my problem.
We Installed RHEL 5 with these Informix products
Informix SE version 7.26 UC6R1
Informix 4gl Developer Version 7.32 UC4
Informix 4gl Runtime Version 7.32 UC4
Informix 4gl Compiler RT Version 7.32 UC3
Informix Sql Development Version 7.32 UC4
Informix Sql Runtime Version 7.32 UC4
And the profile as:
export DBSCREENOUT=/tmp/screen.out
export DBPATH=/srs-prps/ppsys
export INFORMIXDIR=/srs-prps/informix
export PATH=$INFORMIXDIR/bin:$PATH
export INFORMIXDIR=/srs-prps/informix
export INFORMIXSERVER=mainsrvrexport TERMCAP=/srs-prps/informix/etc/termcap
export INFORMIXTERM=termcap
export INFORMIXSQLHOSTS=/srs-prps/informix/etc/sqlhosts
LD_LIBRARY_PATH=$INFORMIXDIR/lib/tools:$INFORMIXDIR/lib:$INFORMIXDIR/lib/esqlexport LD_LIBRARY_PATH
export SQLEXEC=$INFORMIXDIR/lib/sqlexec
export TERM=vt100
I have part of the code like this. I have tried to put displays around to
track down the flow as follows:
LET GetInput = TRUE
WHILE GetInput
display " Inside infield manno 1 "
display "GetInput = ", GetInput
sleep 5
INPUT w_manno,
w_surname
WITHOUT DEFAULTS
FROM manno,
surname
AFTER FIELD manno
display " Inside infield manno 2 "
sleep 5
IF w_manno <> " "
AND w_manno IS NOT NULL
THEN
SELECT COUNT(*)
INTO w_cnt
The second display is not coming. I can't put a display just after the INPUT
command or as I am getting a syntax error.
I have also tried the following:
LET GetInput = TRUE
WHILE GetInput
display " Inside infield manno 1 "
display "GetInput = ", GetInput
sleep 5
INPUT BY NAME manno,
surname
WITHOUT DEFAULTS
But still I don't seem to get what is going on. How do control the cursor to
placed in the input field ? Is it an Informix problem or linux ?
Thanking you in advance.
Felix Mwango Mutale
I don't think you're allowed to use a display statement inside an input
statement without it being a display to a field name.
Either use the message or error functions or put a message line on your
form and display to it:
MESSAGE " Inside infield manno 2 "
Or
ERROR " Inside infield manno 2 "
Or
DISPLAY " Inside infield manno 2 " TO messg_line
--EEM
> -----Original Message-----
> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
> Mwango Mutale
> Sent: Friday, April 17, 2009 7:51 AM
> To: ids@iiug.org
> Subject: segmentation fault [15550]
>
> Dear Sir,
>
> I posted a message over the above problem but, I have had no feed
back.
> Here
> is my problem.
>
> We Installed RHEL 5 with these Informix products
>
> Informix SE version 7.26 UC6R1
> Informix 4gl Developer Version 7.32 UC4
> Informix 4gl Runtime Version 7.32 UC4
> Informix 4gl Compiler RT Version 7.32 UC3
> Informix Sql Development Version 7.32 UC4
> Informix Sql Runtime Version 7.32 UC4
>
> And the profile as:
>
> export DBSCREENOUT=/tmp/screen.out
> export DBPATH=/srs-prps/ppsys
> export INFORMIXDIR=/srs-prps/informix
> export PATH=$INFORMIXDIR/bin:$PATH
> export INFORMIXDIR=/srs-prps/informix
> export INFORMIXSERVER=mainsrvr> export TERMCAP=/srs-prps/informix/etc/termcap
> export INFORMIXTERM=termcap
> export INFORMIXSQLHOSTS=/srs-prps/informix/etc/sqlhosts
>
LD_LIBRARY_PATH=$INFORMIXDIR/lib/tools:$INFORMIXDIR/lib:$INFORMIXDIR/lib/e
> sql
> export LD_LIBRARY_PATH
> export SQLEXEC=$INFORMIXDIR/lib/sqlexec
> export TERM=vt100
>
> I have part of the code like this. I have tried to put displays around
to
> track down the flow as follows:
>
> LET GetInput = TRUE
> WHILE GetInput
> display " Inside infield manno 1 "
> display "GetInput = ", GetInput
> sleep 5
> INPUT w_manno,
> w_surname
> WITHOUT DEFAULTS
> FROM manno,
> surname
>
> AFTER FIELD manno
> display " Inside infield manno 2 "
> sleep 5
> IF w_manno <> " "
> AND w_manno IS NOT NULL
> THEN
> SELECT COUNT(*)
> INTO w_cnt>
> The second display is not coming. I can't put a display just after the
> INPUT
> command or as I am getting a syntax error.
>
> I have also tried the following:
>
> LET GetInput = TRUE
> WHILE GetInput
> display " Inside infield manno 1 "
> display "GetInput = ", GetInput
> sleep 5
> INPUT BY NAME manno,
> surname
> WITHOUT DEFAULTS
>
> But still I don't seem to get what is going on. How do control the
cursor
> to
> placed in the input field ? Is it an Informix problem or linux ?
>
> Thanking you in advance.
>
> Felix Mwango Mutale
>
>
>
************************************************************************
**
> *****
> Forum Note: Use "Reply" to post a response in the discussion forum.