hwi CloseStack Buggy?

Merula_20758
Merula_20758 Altair Community Member
edited October 2020 in Community Q&A

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

  • tinh
    tinh Altair Community Member
    edited April 2016

    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!

  • Merula_20758
    Merula_20758 Altair Community Member
    edited April 2016

    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....

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2016

    @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

     

     

  • Merula_20758
    Merula_20758 Altair Community Member
    edited June 2016

    Hyperview does not know this command ??

     

    Thanks for the suggestion though ;)/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />

     

  • Pritish Avachat
    Pritish Avachat Altair Community Member
    edited January 2020

    try using catch command for 'session1: object with this name already exists.'

    set hn [hwi ListAllHandles]
    foreach hn1 $hn {
    catch {$hn1 ReleaseHandle}
    }

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2020