For example this VB code runs ok
- Code: Select all Expand view
Dim blob() As Byte
' Read binary data from file.
Open CommonDialog1.FileName For Binary As #1
ReDim blob(LOF(1))
Get #1, , blob()
Close #1
Templ.Deserialize blob
Thanks in advance.
Dim blob() As Byte
' Read binary data from file.
Open CommonDialog1.FileName For Binary As #1
ReDim blob(LOF(1))
Get #1, , blob()
Close #1
Templ.Deserialize blob
xVar1:=oTmp:Serialize()
oTmp:Deserialize( xVar1) //Runs Ok
xVar1:=oTmp:Serialize()
?ValType(xVar1) // C
?Len(xVar1) //318
xVar2:=''
FOR i:=1 TO Len(xVar1)
xVar2+=SubStr(xVar1,i,1)
NEXT
?Len(xVar2),Len(xVar1) //318 318
?ValType(xVar2), Valtype(xVar1) // C C
?xVar2==xVAr1 // .T.
oTmp:Deserialize( xVar1) //Runs Ok
oTmp:Deserialize( xVar2) //Crash
oTmp:Deserialize( xVar2) //Crash
oTmp:Deserialize( xVar1) //Runs Ok
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 91 guests