simona
30th September 2009, 13:16
Hello everybody,
I have an AFS problem: I started 2 sessions, actually is one session started two times (first time by stpapi.put.field and the second time by stpapi.synchronize.dialog, the synchronized session is the same like parent session).
My problem is that i can't kill them both. The parent session remains opened. Please see my bellow code.
Please advise :)
Thanks
**********************
stpapi.put.field("whltc1100m000", "whltc100.item", tcibd001.item)
stpapi.put.field("whltc1100m000", "whltc100.clot", f.lot)
ret = stpapi.synchronize.dialog("whltc1100m000", "add", error.msg)
if ret then
retval = stpapi.insert("whltc1100m000", true, dummy.msg)
if not retval then
send.error.to.report("not inserted")
stpapi.handle.subproc("whltc1100m000", "whltc1100m000", "kill")
stpapi.end.session("whltc1100m000")
stpapi.end.session("whltc1100m000")
endif
else
send.error.to.report("not synchronnized")
stpapi.end.session("whltc1100m000")
endif
stpapi.handle.subproc("whltc1100m000", "whltc1100m000", "kill")
stpapi.end.session("whltc1100m000")
stpapi.end.session("whltc1100m000")
********************
I have an AFS problem: I started 2 sessions, actually is one session started two times (first time by stpapi.put.field and the second time by stpapi.synchronize.dialog, the synchronized session is the same like parent session).
My problem is that i can't kill them both. The parent session remains opened. Please see my bellow code.
Please advise :)
Thanks
**********************
stpapi.put.field("whltc1100m000", "whltc100.item", tcibd001.item)
stpapi.put.field("whltc1100m000", "whltc100.clot", f.lot)
ret = stpapi.synchronize.dialog("whltc1100m000", "add", error.msg)
if ret then
retval = stpapi.insert("whltc1100m000", true, dummy.msg)
if not retval then
send.error.to.report("not inserted")
stpapi.handle.subproc("whltc1100m000", "whltc1100m000", "kill")
stpapi.end.session("whltc1100m000")
stpapi.end.session("whltc1100m000")
endif
else
send.error.to.report("not synchronnized")
stpapi.end.session("whltc1100m000")
endif
stpapi.handle.subproc("whltc1100m000", "whltc1100m000", "kill")
stpapi.end.session("whltc1100m000")
stpapi.end.session("whltc1100m000")
********************