psuryava
16th April 2013, 13:17
Hi All,
Please have a look at below piece of code. Sometimes it works perfectly fine but sometimes it hangs either at brp.open, brp.close or at brp.ready(written in function read.main.table()) . No clue why this is happening. Please help me to solve this problem.
Please see attached file for detail screenshots where debugger hangs.
select tcsil999.*
from tcsil999
where tcsil999._index1 inrange {:cuno.f} and {:cuno.t}
and tcsil999.email <> ""
and tcsil999.aemail <> ""
selectdo
if isspace(tcsil999.email) or isspace(tcsil999.aemail) then
break
endif
spool.fileout = creat.tmp.file$(bse.tmp.dir$())
invoice.file.name = spool.fileout
inv.rep = brp.open("rtdsil041011003", "ASCIN", 0)
read.main.table(tcsil999.cuno)
brp.close(inv.rep)
Please have a look at below piece of code. Sometimes it works perfectly fine but sometimes it hangs either at brp.open, brp.close or at brp.ready(written in function read.main.table()) . No clue why this is happening. Please help me to solve this problem.
Please see attached file for detail screenshots where debugger hangs.
select tcsil999.*
from tcsil999
where tcsil999._index1 inrange {:cuno.f} and {:cuno.t}
and tcsil999.email <> ""
and tcsil999.aemail <> ""
selectdo
if isspace(tcsil999.email) or isspace(tcsil999.aemail) then
break
endif
spool.fileout = creat.tmp.file$(bse.tmp.dir$())
invoice.file.name = spool.fileout
inv.rep = brp.open("rtdsil041011003", "ASCIN", 0)
read.main.table(tcsil999.cuno)
brp.close(inv.rep)