On 25/11/00 2:17 am, Sivakatirswami <[EMAIL PROTECTED]> wrote:

(snip)

> so we have two issues here
> 
> 1) setting the directory on a PC in a close stack handler is just not being
> "obeyed. . ." 
> 2) There also is some issue, independent of the above, but interwoven
> anamolously, about forcing the screen "refresh" if while an image is open, a
> directory change "breaks" its file reference and then changing the directory
> back, but the image doesn't know that the directory is now correct for its
> filename. Perhaps we should close the mainstack and reopen it to force a
> solid "reconnect directory and file name?" or does hiding and showing the
> stack do the same thing?

(snip)

It sounds like there is a bug somewhere under certain circumstances in the
handlers you use to set the directory.  And you can't expect images to be
displayed after the screen is refreshed (as it is regularly in the normal
course of using any title) if you have set the directory to some value that
means they can't be found.

Why do you need to set the directory at all?  We would only set the
directory to multiple different values for a single title in exceptional
circumstances.  I would go for ensuring it is the same as the standalone on
startUp (something you only need to do for testing purposes in a
non-standalone environment because this happens automatically when you run
as a standaldone), then reference everything in paths relative to that.
There are no problems referencing sub folders with relative paths - to any
level deep you desire.  Of course, if you are setting the directory to
different places and setting the filenames of images that isn't going to
work - they all need to be set relative to the one location.

If you *do* need to set it, ensure you set it back at the end of the handler
- if that isn't working, chances are your handler is either stopping part
way through due to some bug, or the value you are setting the directory back
to has a fault in it.

put the directory into tReturnDir --store a correct, valid value
set the directory to tWhatever
--do whatever
set the directory to tReturnDir
--now set the file names of any images you plan to set

Regards,

Kevin

Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to