Because I get rare cases where it won't be initialized when I try to draw to it. My code won't really help
If BG = Null Then LCAR.BGisInit = False
If Not(LCAR.BGisInit) Then
If LCAR.VolText.Length = 0 AND LCAR.VolTextList.Size>0 Then
Sub DrawScreen(Interval As Int)
If LCAR.NeedsClearing Then LCAR.ClearScreen(BG)
If NeedsShowFrame Then
If Interval> 0 Then LCAR.IncrementLCARs(LCARSpeed , 1,Interval )
If LCAR.DrawLCARs(BG, 0) Then Activity.Invalidate
I don't understand.
Who is the programmer ?
If it's you, I hope you know what you are doing.
Your code snippet is of no use, where do you use the Canvas?
What type of object is LCAR ?
I suspect that the problem is here.
If you really need it, add the canvas as a parameter in the calling sub.
But, for me this is interesting if want to use a same routine with different canvases.
Which makes no sense.
As long as the activity and bg were initialized once they cannot go back to null?
I can only think you used bg before it was initialized somehow.
Is LCAR a class or a code module?