Android Question limitation with the number of panels ?

Stephaner

Member
Licensed User
Longtime User
Hello,
I'm encountering a strange problem.

I have declared, initialized, checked many times... several panels in my application.
But it looks like if I have a limitation on the number of panels because I absolutely can't use any more panels (I have 14 panels in my designer, and some other are created by code)

For example with my "panelImageSignal"" :
line #85 : Dim PanelImageSignal as Panel 'No problem, it looks to work...
line #400 : PanelImageSignal.Initialize("") 'No problem , it looks to work...
...
line #2087 : PanelImageSignal.Visible=False 'No problem , it looks to work...
...
line #2677 : PanelImageSignal.Top=100
==> 'Error : LastException java.lang.NullPointerException

I had previously the same problem with another panel. I fixed the but by removing the panel and doing without. But this one I really need it.
I don't understand the problem...
 
Last edited:

Stephaner

Member
Licensed User
Longtime User
Sorry... I v'e just understood my mistake :
I have initialized the panel...but it was not necessary because I had previously created it in the designer....

So, my program is correct, I must remove the line #400.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
In fact, I was going to write that there should be a problem in initialization.

Please write SOLVED in the title
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
There is no limit.

See my example here. It is using 2000 Buttons on one activity
 
Upvote 0
Top