[Gambas-user] Circular references and allocations non freed
martin p cristia
tercoide at ...67...
Mon Sep 14 20:34:34 CEST 2015
Me neither.
Can't isolate it. It's a strange errror because those structs are
created only once as global variables.
In example:
' Gambas module file
' modEstru
Public Struct datosSTRUCT
magic As String
proyecto As String
descripcion As String
totalnudos As Integer
totalbarras As Integer
totalcargasnudo As Integer
totalcargasplacas As Integer
totalplacas As Integer
TotalGrupos As Integer
totalapoyos As Integer
totalsecciones As Integer
totalSectores As Integer
tipo As Integer
totalcargasbarra As Integer
unidades As Struct UnidadesSTRUCT
End Struct
Public datos As Struct DatosSTRUCT
then, in the whole program (8 modules and 18 forms), they are used like
this:
modEstru.tipo = 3
or
if modEstru.TotalGrupos = 0 then ........
and so on
AFAIK they are static variables I use for flags for something, how can
they be re allocated thos amount of times???
or even worse, how can they be circular on any way???
El 12/09/15 a las 11:30, gambas-user-request at lists.sourceforge.net escribió:
> I can't reproduce the problem with that code. Please try to isolate the
> problem in small runnable project.
>
>
> Jussi
--
Saludos
Ing. Martin P Cristia
More information about the User
mailing list