Hallo,
I have a simple Object read-only Property "Length " which gives me an Arithmetic operation that resulted in an overflow, the application runs without any problem or error when "Debug and AnyCPU" are set. But it gives an error when I set it to Release & AnyCPU.
Whatever the if statement to make sure if the Num & Num2 are greater than 0 does not help. Any idea how to solve this problem?
Public Class Test
Public Property Num2 as integer
Public Readonly Property Length as long?
Get
Dim Num as long
Return Num * (Num2 /100)
End Get
End property
End Class
Thanks