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

New issue 175 by emil.len...@gmail.com: The Array Base class does not work  
as expected
http://code.google.com/p/gambas/issues/detail?id=175

1) Describe the problem.
The Array classes does not follow the inheritance rules. That leads to  
problems when using the Array Base class like this:

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

Version: TRUNK

3) Provide a little project that reproduces the bug or the crash.
   Dim a As Array
   Dim i As Integer
   For i = 1 To 2
     If i = 1 Then
       a = New Integer[1]
       a[0] = 1
     Else If i = 2 Then
       a = New String[1]
       a[0] = "2"
     End If
     Print a[0] + i 'Will print the address in memory for "2" + i the second  
time
   Next

Prints:
2
13148466
gbx3: warning: 2 allocation(s) non freed.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to