M
Michael C
It seems that no matter how I load a bitmap into memory it remains attached
to whatever I used to create it. If I obtained the bitmap from a file the
file stays locked or if it came from a stream I can't close the stream. I
don't see why it is doing this when it loads the full image into memory
anyway. I could understand it doing this if the bitmap discards it's data
when not needed but it doesn't seem to do this. The only way I've found to
fully detach a bitmap from it's source is to create a new bitmap from the
previous one but this slows things down considerably when loading a lot of
images and doubles the memory use while loading large images. Is there any
other way?
Thanks,
Michael
to whatever I used to create it. If I obtained the bitmap from a file the
file stays locked or if it came from a stream I can't close the stream. I
don't see why it is doing this when it loads the full image into memory
anyway. I could understand it doing this if the bitmap discards it's data
when not needed but it doesn't seem to do this. The only way I've found to
fully detach a bitmap from it's source is to create a new bitmap from the
previous one but this slows things down considerably when loading a lot of
images and doubles the memory use while loading large images. Is there any
other way?
Thanks,
Michael