hwi CloseStack Buggy?
Hey all,
I am a bit confused right now. I did some exercise with hyperview tcl. I set up a real simple script:
# Hyperview Exercise1 hwi OpenStack hwi GetSessionHandle session1 session1 GetProjectHandle project1 project GetPageHandle page1 1 page1 GetWindowHandle win1 1 win1 SetClientType animation hwi CloseStack
When running the script multiple times it says several times:
session1: object with this name already exists.
I thought, wit hhwi CloseStack all handles would get released which is not the case? Someone seeing the same behaviour with those lines running 2 times?
Thanks in advance and best regards,
Merula
Answers
-
Hi,
actually i save your code in a tcl file <sample.tcl> and type in commandwindow:
for {set i 0} {$i<100} {incr i} {source sample.tcl}
but there is no bug reported
Anyway, try installing newest HW updates and hotfix...
Good luck!
0 -
I checked again also with your method but still I get the same error:
(Desktop) 5 % for {set i 0} {$i<100} {incr i} {source test.tcl}
session1: object with this name already exists.I tested it both with 14 and 13. strange....
0 -
Altair Forum User said:
@Merula try it with releaseMyHandles
# Hyperview Exercise1 hwi OpenStack hwi GetSessionHandle session1 session1 GetProjectHandle project1 project GetPageHandle page1 1 page1 GetWindowHandle win1 1 win1 SetClientType animation releaseMyHandles hwi CloseStack
0 -
Hyperview does not know this command ??
Thanks for the suggestion though /emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />
0 -
try using catch command for 'session1: object with this name already exists.'
set hn [hwi ListAllHandles]
foreach hn1 $hn {
catch {$hn1 ReleaseHandle}
}0 -