Restored from previous forum. Originally posted by PB.
Do you have to free an image before loading a new one that has the
same image number? Or does the LoadImage command automatically free
an existing image if you use the same image number?
PB - Registered PureBasic Coder
Free an image before loading a new?
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> Did you find something wrong so ?
No problem or anything, but I just wanted to confirm if it's OK to use
pic=LoadImage(1,"pic.bmp") instead of FreeImage(1) : pic=LoadImage(1,"pic.bmp").
I was hoping there wouldn't be any memory leaks or anything, because
I haven't used images very much with PureBasic before.
PB - Registered PureBasic Coder
> Did you find something wrong so ?
No problem or anything, but I just wanted to confirm if it's OK to use
pic=LoadImage(1,"pic.bmp") instead of FreeImage(1) : pic=LoadImage(1,"pic.bmp").
I was hoping there wouldn't be any memory leaks or anything, because
I haven't used images very much with PureBasic before.
PB - Registered PureBasic Coder
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm