Re: [Gambas-user] Array Resize limits

2015-08-20 Thread Benoît Minisini
Le 21/08/2015 02:01, Benoît Minisini a écrit : > Le 21/08/2015 00:58, martin p cristia a écrit : >> 'thi is the actual (just what's important) code >> >> Public MatRigEst As New Float[] >> >> Function calcular() As Integer >> >> >> Dim longo As Long, longo2 As Long >> >> ' longo = 1800

Re: [Gambas-user] Array Resize limits

2015-08-20 Thread Benoît Minisini
Le 21/08/2015 00:58, martin p cristia a écrit : > 'thi is the actual (just what's important) code > > Public MatRigEst As New Float[] > > Function calcular() As Integer > > > Dim longo As Long, longo2 As Long > > ' longo = 18000 * 6 * 64000 ' = -1677934592 !!! > > 'correct value

[Gambas-user] Array Resize limits

2015-08-20 Thread martin p cristia
'thi is the actual (just what's important) code Public MatRigEst As New Float[] Function calcular() As Integer Dim longo As Long, longo2 As Long ' longo = 18000 * 6 * 64000 ' = -1677934592 !!! 'correct value longo = CLong(18000) * 6 * 64000 ' = 691200 MatRigEs

Re: [Gambas-user] Array Resize limits

2015-08-20 Thread Tobias Boege
On Thu, 20 Aug 2015, martin p cristia wrote: > Hi: > > I need a huge array of Floats, use: > > longNumber = 4 ' 400M * 8bytes = 3.2GB > > Resize fArray[longNumber] ' this gives no error !!! > > > fArray[1] = 1000 ' this gives Out of Bounds > > workaround? > How does the code real

[Gambas-user] Array Resize limits

2015-08-20 Thread martin p cristia
Hi: I need a huge array of Floats, use: longNumber = 4 ' 400M * 8bytes = 3.2GB Resize fArray[longNumber] ' this gives no error !!! fArray[1] = 1000 ' this gives Out of Bounds workaround? -- Saludos Ing. Martin P Cristia -