Refreshing hiLoadIconData() icons

Discussion in 'Cadence' started by eyn, Oct 21, 2009.

  1. eyn

    eyn Guest

    When I use hiLoadIconData() or hiLoadIconFile() to load an image for
    my form, the image is loaded into the memory. Without restarting
    Cadence, I am not able to load the same file to get an updated image,
    it will keep giving me the old image that is loaded earlier.

    Is there a way to purge those loaded images from the memory just so I
    can reload the same image file using hiLoadIconData() or hiLoadIconFile
    () and get the latest image? Thanks!
     
    eyn, Oct 21, 2009
    #1
  2. eyn

    Guest Guest

    No, icons get cached by name, so the only way to force load a new image in the
    same session is to create a new image file with a different name or path and
    load that.

    -Pete Zakel
    ()

    Jeff's Theorem of the Stock Market:
    The price of a stock moves inversely to the number of shares purchased.
     
    Guest, Oct 21, 2009
    #2
  3. eyn

    eyn Guest

    Hi Pete, thanks for the feedback, that's what I thought if there's no
    way to purge those cached images. IMO Cadence should provide a way to
    force reload the icons, maybe as an optional argument for the
    hiLoadIconFile() and hiLoadIconData() function.

    Creating new images with new names in order to update the images for
    existing session isn't the best way to do things. I'll probably add
    date/time information to the image's filename and make sure Cadence is
    loading the latest one. Still, now I have to worry about cleaning up
    those older files when generating new images.
     
    eyn, Oct 22, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.