monica1
25th April 2005, 18:44
After changing the porting set from 6.2a03 to 7.1c we have this error: Can't read session or object (tdpur4101) !!!! CANNOT DETERMINATE LOCATION !!!!

We find that the error appears in tdsls.dll0300.before.program() when the program call to function activate.


if activate(header.session,sprintf$("%d",start.by.dem),
sprintf$("%s",tg.model),
sprintf$("%s",tg.version),
sprintf$("%s",tg.process),
sprintf$("%d",tg.activity),
sprintf$("%s",tg.role),
sprintf$("%d",tg.authorization.type),
sprintf$("%d",tg.company)) then
|#45512.en
| so if you started tdsls4500m000, tdsls4500 will be started.
stop()
endif


Somebody can help us?

monica1
28th April 2005, 13:57
We find the solution. If the session that the activate() try to open doesn't exist the error appears.
Whe write this new code and now it works perfectly.


#include <bic_tt>

if tt.session.present(header.session) then
if activate(header.session,sprintf$("%d",start.by.dem),
sprintf$("%s",tg.model),
sprintf$("%s",tg.version),
sprintf$("%s",tg.process),
sprintf$("%d",tg.activity),
sprintf$("%s",tg.role),
sprintf$("%d",tg.authorization.type),
sprintf$("%d",tg.company)) then

| so if you started tdsls4500m000, tdsls4500 will be started.
stop()
endif
endif



In red the new code