Hiba_t
28th October 2004, 18:17
Hi all,

I'm using function servers with the session tfgld1101m000. Doing the following

stpapi.put.field("tfgld1101m000", "tfgld101.year", "2000")
stpapi.put.field("tfgld1101m000", "tfgld101.btno", "340" )
stpapi.find("tfgld1101m000")
stpapi.get.field("tfgld1101m000", "tfgld101.ttyp", vall )
stpapi.end.session("tfgld1101m000")

The value returned in the variable vall is correct.. The problem is when it gets to end.session I get the following error and it stucks..

Fatal error: index 31 out of dims [0] 20
Fatal error: Can not continue in ... in DLL: ottstpapihand ()[bms.receive$]

The same code works for other sessions..
Can anyone help me ?

Thanks

mark_h
28th October 2004, 21:08
Dropped your code in one of my test function servers and it worked just fine. I would say you need an update on the session or the stpapi libraries. I do not think this would make a difference, but you could always try stpapi.change.view and stpapi.browse.set to read through each of the tfgld101.ttyp fields. I think those commands are bettor suited for this type of multi-occurance session.

Mark

Hiba_t
29th October 2004, 11:07
Thanks for your reply mark..

I tried to use stpapi.change.view but I get the following error when it comes to execute it..

Fatal error : Link on stack failed zero pointer pushed
Fatal error : Can not continue in tfgld1101m000 in DLL: ottstpstandard ()[exec_function]

mark_h
29th October 2004, 15:24
I would now try to get a more current version of the session code there could be a problem with it. Then if that does not work I would recommend updating the stpapi objects. Both sets of code work on our 4c4 system.

Mark