Bug in CopyImage-command?

Archives Forums/Blitz3D Bug Reports/Bug in CopyImage-command?

Marcell(Posted 2014) [#1]
Hello,
It seems there may be bug in CopyImage-command.

The following code works:


...but the code below gives an error "Image does not exist" in about 10 seconds in my system (at first everything is ok):


I use Blitz3D v1.108 and Windows 7 Home Premium.

I have had mystic "Memory Access violation" errors with a game I've been working on with code lines using CopyImage. But those errors occur only sometimes.


Yan(Posted 2014) [#2]
If you insist on cluttering up memory with orphaned image data, something's gonna break eventually. ;o)
DrawImage gfxMyPic,0,0
FreeImage gfxMyPic
gfxMyPic = CopyImage(gfxOriginalPic)


For future reference, it's probably best to first post in the programming forums if you're not sure something is really a bug.


[edit]
Your first example only appears to be working because, I'm assuming, the created image is much smaller than the image you're loading in the second example and therefore eats memory at a slower rate, but crash it will.
[/edit]


Marcell(Posted 2014) [#3]
Ok, thanks for the info!