Pardon me for butting in, but I wonder if you have tried a Gambas short (16 bits).
The last time I can recall seeing a byte or character passed as an 8bit value I was using a Z80! I have a vague recollection that the Lattice C compiler for the MC68008 used the bottom word (16 bits) in a register for a char and I may be re-inventing history, but something tells me the MC68020 needed a long word (32 bits)! If this is a matter of the wrong amount of storage being allocated and written to, I would certainly try both short and long. R ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user