Bug? b4a Gallery 3.55 crash b4a 8.30

Discussion in 'Bugs & wishlist' started by rkxo, Jul 3, 2018.

  1. rkxo

    rkxo Member Licensed 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


    Code:
    #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, 00100%x100%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
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Doesn't look like a bug in B4A. Better to post it in the library thread.
     
  3. rkxo

    rkxo Member Licensed User

    ok, thanks
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice