crincoli
7th January 2002, 16:23
I called session tisfc0202m000 (Report Complete Order and Adjust Stock) via function server
created with ttstdcreatdll.
When, after executing the continue process, the main session try to close the subsession tihra1211, a fatal error happen:
(use of NULL pointer on '').
Error happens in library tisfcdll0225, in the instructions:
if process.hra1211 then
send.to.process(process.hra1211)
signal(SIGCHLD, SIGNOIGN)
However, program continues execution.
Any idea? Thanks Pietro
evesely
7th January 2002, 22:27
I don't know if this is your problem, but what the heck:
In our version of this library, we make sure that we set all of the process variables to 0 at the end of the tisfc.dll0225.end.upper.processes(). This would prevent unwanted process calls if, by chance, something tried to initiate them.
mark_h
7th January 2002, 23:42
You might also want to check for any reports that may need to be selected. The last time I recall a null pointer error was when the session was trying to open a report using the Baan function open.report. That was as far as I could trace it, since we do not own source code. It seems to me that the session did two report opens and I could only control the first one with stpapi.set.report and when the second report went to generate, the error then occurred.
Not sure if this is the case, but it is something I ran into.
Good Luck!!!
Mark
crincoli
16th January 2002, 12:58
Thanks you. I solved that problem, the objects ttstpstandard and ttstpapihand were not updated.
Now I have another problem:
when a subsession (tihra1210s000) execute (print.data), the program do not execute section on.choice, but go to after.choice.
Thanks for any suggestion Pietro
mark_h
16th January 2002, 16:03
Hi Pietro!
Glad you solved your other problem.
What commands are you using to start the session processing? If you are using stpapi.continue then maybe you could try stpapi.print.report. This is just a guess since we do not own source code and I can not debug problems like you can. Luckily so far I have been able to work around the problems I do encounter.
Another guess would be an update object for the session - but I do not like that answer.
Good Luck!
Mark
crincoli
18th January 2002, 17:56
Yes, I tried stpapi.print.report and it works.
Thanks again Pietro:)