arunprasath
16th November 2002, 16:15
Hi,
I am reading an ASCII file and depending upon the number of records, I am running a set of sessions using AFS in a loop.

The AFS works fine, when I run in debug mode, going step by step.
But, it hangs, when I run after compilation.
so,I have run the code,again in debug mode with "C" (continue) command.
when I run that , It just hangs in a simple stpapi.put.field() function, after execution of stpapi.insert() function.

This is strange error. Has somebody experienced such errors?

I am in Baan IV c4. with service pack 8.
please help.
thanks
s.arun prasath

mark_h
17th November 2002, 22:00
I have seen this before. See some of my replies to rohan_rege. What I do in these case is put in a UNIX sleep comand for a couple of seconds. This seems to take care of the problem for me.

Mark

arunprasath
18th November 2002, 06:51
Hi mark,
thanks for the reply.
but I am in Windows NT Server.

so when I put the command
rc = shell("sleep 1", SHELL_NO_OUTPUT)

I am getting this message from a popup message:
Fatal Error: PTY error: 'No more pty's available' (e=0) PRESS <RETURN>
and it hangs.


whall can be done?

arunprasath
18th November 2002, 06:58
In windows, I used the function suspend(1000)
and that works perfectly.

But I also use after the end.session..

thanks again
s.arun prasath

arunprasath
26th November 2002, 17:33
Hi, now the same session after installing the latest solution 10923 works fine and I have removed the line suspend(1000) . the bug has been solved in this solution.
27-09-2002:(128850)
- Defect 127407 hanging sessions when and end() is encountered

regards
s.arun prasath

mark_h
26th November 2002, 19:22
Thanks for the update. I will keep this in mind if I run into any other problems with this.

Mark