Bug? b4a Gallery 3.55 crash b4a 8.30

rkxo

Active Member
Licensed User
Longtime User
hi,
When i initialize gallery crash
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available


B4X:
#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
Dim gallery As PhotoGallery

End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:


    gallery.Initialize("Gallery")

    Activity.AddView(gallery, 0, 0, 100%x, 100%y)

    gallery.TextSize = 16
    gallery.TextColor = Colors.Yellow
    gallery.ShowText = False
    gallery.ItemWidth = 300
    gallery.ItemHeight = 200
    gallery.Spacing = 50
   
    '*************************************
   
    gallery.ScaleType = gallery.ScaleType.Center_Crop
    gallery.SetNoEffect = False
    gallery.SetBorderColor=Colors.Yellow
    gallery.SetCornerRadius = 10
    gallery.SetBorderWidth = 2
   
   
    gallery.AddImageFromWebAt(0,"https://lh4.googleusercontent.com/-e9NHZ5k5MSs/URqvMIBZjtI/AAAAAAAAAbs/1fV810rDNfQ/s1024/Yosemite%252520Tree.jpg")
   
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

thanks
 

Attachments

  • b4aGallery_crash_outmemory.zip
    8.2 KB · Views: 180
Top