Error CS1026, CryptoDesktop.dll

Standa

Member
Licensed User
Longtime User
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

Anybody knows, where is a problem?
 

Standa

Member
Licensed User
Longtime User
Yes, that's it! Thanks :)

And I have similar problem with optimized compiler: error CS1002 and code Form1.Height=640. Do you have some advice?

Are these problems described anywhere on this sites?
 

Standa

Member
Licensed User
Longtime User
I wrote simple application:
B4X:
Sub App_Start
   Form1.Show
   Form1.Height=240
End Sub

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 :)
 

Standa

Member
Licensed User
Longtime User
Yes, I am still newbie, thanks :)
 
Top