Odd Behavior -64

Started by Jeffrey Ferreira, September 09, 2025, 04:51:00 PM

Previous topic - Next topic

Jeffrey Ferreira

I'm not sure what category to even put this under.
we have an an array that contains data like this:

key_pair$[1]="order_number$"+$01$+"123456"
we do
read data from key_pair$,sep=$01$ to variable$,value$

after that we do a via to assign value to variable...
here is the weird thing:
every now and then we will get one of the characters in order_number$ will be like -64 in terms of ascii value

so the _ is asc 95
we will get the asc 31 character instead

sometimes the R asc 82 will be asc 18

has anyone ever had anything at all like this happen?

thanks jeff


James Zukowski

Presuming you have confirmed the source of the transmission sent it properly...

There is a phenomenon that is pretty rare earthside, but seems to happen more commonly outside the atmosphere: cosmic ray bit-flipping. The 64 value change suggests that, as it's just a single bit in the byte. If it happens consistently at the same character, that might also suggest a memory error or failure of some sort.

Not sure what you're referring to with "the R asc 54 will be asc 12", as "R" is ascii 82.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Jeffrey Ferreira

i'm sorry James you are right...i was getting the asc mixed up with the hex...lets just disregard this post....i'm just going to trap for it with an error branch for now.