[Gambas-user] Issue 267 in gambas: Write properties with _unknown

gambas at ...2524... gambas at ...2524...
Tue Jul 3 15:26:10 CEST 2012


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 267 by emil.len... at ...626...: Write properties with _unknown
http://code.google.com/p/gambas/issues/detail?id=267

1) Describe the problem.
The documentation says "If the _property is not implemented, then all  
unknown symbols will be methods."
However, when a property is written to by using a _unknown method, it is  
not checked whether _property is implemented or not. And if it isn't, a  
memory error occurs.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r4888

3) Provide a little project that reproduces the bug or the crash.
' Class1
Public Sub _unknown(...)

   Print "unknown function"

End

And somewhere else:
Dim c As New Class1
c.uhh = 3

Result:
unknown function
gbx3: warning: circular references detected:
gbx3:    -1 Class1
gbx3: warning: -1 allocation(s) non freed.






More information about the User mailing list