Another IncBin problem

BlitzMax Forums/BlitzMax Programming/Another IncBin problem

Damien Sturdy(Posted 2005) [#1]
Hey peeps!

Ive got another problem.

this works:
incbin "file.dat"
...


but this doesnt
framework brl.glmax2d
Import brl.blitz
Import brl.random
Import brl.pngloader
incbin "file.dat"


Ive tried with and withour the brl.blitz import but it still just throws up a memory exception error.

If i remove all framework and import commands, it works..

So, What do i need to import for incbin to work!?


Cheers


Damien Sturdy(Posted 2005) [#2]
i found that it required:

Import brl.ramstream


In order to work properly. Is that normal?


BlitzSupport(Posted 2005) [#3]
That seems to work fine here. Does it fail with just that code, or when you actually try to use the incbin'd file?


Damien Sturdy(Posted 2005) [#4]
it fails when i try to use the file in a loadimage command.

it worked as soon as i included the brl.ramstream module though. im not too bothered now but is it likely a bug of some sort?