Page 1 of 1
Posted: Mon Sep 09, 2002 7:37 am
by BackupUser
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
Posted: Mon Sep 09, 2002 9:01 am
by BackupUser
Restored from previous forum. Originally posted by fweil.
Hello PB,
I did not use to freeimage before loading a new one at with the same ID. I never noticed any issue with this.
Did you find something wrong so ?
Rgrds
Francois Weil
14, rue Douer
F64100 Bayonne
Posted: Mon Sep 09, 2002 9:19 am
by BackupUser
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
Posted: Mon Sep 09, 2002 12:42 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
It's ok, images are automatically freed. I will update the docs.
Fred - AlphaSND