Main Page | Report this Page
Computers Forum Index  »  Computer - Cadence  »  Refreshing hiLoadIconData() icons...
Page 1 of 1    

Refreshing hiLoadIconData() icons...

Author Message
eyn...
Posted: Wed Oct 21, 2009 6:48 pm
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!
 
Pete nospam Zakel...
Posted: Thu Oct 22, 2009 1:38 am
Guest
In article <2129ce25-0603-4a06-b69a-064231890dd8 at (no spam) g1g2000vbr.googlegroups.com> eyn <dreameyn at (no spam) gmail.com> writes:
Quote:
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 at (no spam) seeheader.nospam)

Jeff's Theorem of the Stock Market:
The price of a stock moves inversely to the number of shares purchased.
 
eyn...
Posted: Thu Oct 22, 2009 3:15 pm
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.
 
 
Page 1 of 1    
All times are GMT
The time now is Mon Nov 23, 2009 2:39 pm