DataBuffer on Android

Monkey Forums/Monkey Bug Reports/DataBuffer on Android

Kele87(Posted 2012) [#1]
Hi,

it seems that DataBuffer doesn't work as it should.

the code is as simple as that:

(...)
Field err: String
(...)
Local buffer := DataBuffer.Load ("test.dat")
If (buffer = null) Then err = "null" Else err = "not null"
(...)
DrawText (err, 0, 0)

if i use files with very little content like

"lol"

it work' fine and says "not null"
but as soon as the file is a bit bigger like

"lol2
test
asdasdasdasdsadsasdasdasdasdsadsasdasdas
dasdsadsasdasdasdasdsadsasdasdasdasdsads
dasdsads"

it says "null" which means the content can not be read anymore.

i'm trying this for android on the emulator with different properties and the LGP990 phone

so DataBuffer seems not to work on "big" files (220bytes isnt big at all but ok...^^)
same problem with LoadString on those devices.


marksibly(Posted 2012) [#2]
Same problem as the fontmachine bug (I hope) - v64b should fix this.


Kele87(Posted 2012) [#3]
would be awesome. thanks for the fast respond. i really love this kind of interaction between developer and customer.