[racket] bitmap% with a file path that's deleted?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Aug 26 11:20:54 EDT 2010

At Thu, 26 Aug 2010 11:14:47 -0400, Danny Yoo wrote:
> Should I expect undefined behavior if I create a bitmap% with a given
> file path, and then later delete that file?  I was assuming that a
> bitmap% holds onto an internal representation of the image data; if
> so, that'd mean I should be able to safely delete the image without
> hurting the snip.

That's correct --- the `bitmap%' object doesn't refer to the file at
all after it has loaded the image.



Posted on the users mailing list.