loadImage / FreeImage

Blitz3D Forums/Blitz3D Beginners Area/loadImage / FreeImage

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If I run the following code, the programm will chrashes after some minutes.
This code is only an example to demostrate the problem in my new game.
In my new game I need very many graphics. I have to reload some graphics, because they are to many.

What can I do ?

Kind Regards,

Dirk Knoop

Graphics 1024,768,32,1
SetBuffer BackBuffer()

Repeat

If KeyHit(1)=1 Then End

c=c+1
Cls
Text 10,10,c
Flip

picture=LoadImage("picture.png")
FreeImage picture

Forever