Refreshing hiLoadIconData() icons

E

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!
 
In article <2129ce25-0603-4a06-b69a-064231890dd8@g1g2000vbr.googlegroups.com> eyn <dreameyn@gmail.com> writes:
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!
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
(phz@seeheader.nospam)

Jeff's Theorem of the Stock Market:
The price of a stock moves inversely to the number of shares purchased.
 
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top