Random MAVs
BlitzMax Forums/BlitzMax Programming/Random MAVs
| ||
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 |
| ||
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. |
| ||
I thought the same until I wrote a little test app. I can't see anything wrong with this: |
| ||
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. |
| ||
Right in time Brucey did it again and made a Base64 class. Horray! |
| ||
Does it work okay? I only gave it some limited testing. |
| ||
Works like a charm, as all your modules do! |
| ||
Nice, the less work I have to do, the better. |