Hi,
I write little crypting software using Erel's crypto example. Application works good from IDE on desktop and on device too. Non-optimized compilation is without mistake too, but when I try optimized compiling, it ends with error CS1026 in this line: Do While(true)
Piece of example code:
B4X:
Do While(true)
data() = Crypto.Decrypt(PassPhrase,secret())
writer.WriteBytes(data())
If reader.Position = reader.Length Then Exit
c = reader.ReadInt32 'Read the next packet length.
If ArrayLen(secret()) <> c Then
Dim secret(c) As Byte
End If
reader.ReadBytes(secret(),c)
Loop
'Form1.Height=640' is correct.
The optimized compiler should behave like the IDE.
If it doesn't do so then it is a bug.
The 'While (true)' will be fixed in the next version (after 6.30 probably).
Run from IDE and non-optimized compiling is ok, but optimized compiling shows this error CS1002.
If this is bug, not my mistake, I will wait for next release