Random MAVs

BlitzMax Forums/BlitzMax Programming/Random MAVs

Jake L.(Posted 2008) [#1]
Hi,

I tried the base64 encoder from the code archives ( http://www.blitzmax.com/codearcs/codearcs.php?code=1724 ), and it throws random errors. But I can't find any error in the code. More details in the archives entry.

Today I got another random bug when calling EndGraphics and the debugger pointed me to a line in glgraphics mod that does nothing big (setting an integer, so there can't go anything wrong). Maybe this is a 1.28 problem, I never got weird errors like this before.

Even if I run in debugmode from within the IDE all I get is an unnamed "Memory access violation", no more details :(

Anyone else getting such weird random errors?

Jake


N(Posted 2008) [#2]
This means you're passing an incorrect buffer size or that you're just not passing a buffer, but some random memory location that does not correspond to what you're trying to encode. Check to make sure you're passing correct data and the correct size to the encoder.


Jake L.(Posted 2008) [#3]
I thought the same until I wrote a little test app. I can't see anything wrong with this:




N(Posted 2008) [#4]
Actually, looking over the code again, that's absolutely horrible what I wrote. I guess that's another lesson to not do things at 3am. I'll see about rewriting this. My fault here.


Jake L.(Posted 2008) [#5]
Right in time Brucey did it again and made a Base64 class. Horray!


Brucey(Posted 2008) [#6]
Does it work okay?

I only gave it some limited testing.


Jake L.(Posted 2008) [#7]
Works like a charm, as all your modules do!


N(Posted 2008) [#8]
Nice, the less work I have to do, the better.