Hi,
in a program named "menu" i have an imageview for Logo defined on Designer:
Public menuIVlogo As ImageView
Dim logsoc1 As String
Dim IVsoc1 As Bitmap
logsoc1="ssslogo.png"
IVsoc1.Initialize(File.DirAssets,logsoc1)
Log("menuIVlogo.isinitialized "&menuIVlogo.IsInitialized)
menuIVlogo.Bitmap=IVsoc1
The image is displayed and the log is:
menuIVlogo.isinitialized true
in a program named "timbra" (same project) i have an imageview for Logo defined on Designer:
Public timbraIVlogo As ImageView
Public logsocx As Bitmap
logsocx.Initialize(File.DirAssets,"ssslogo.png")
Log("timbraIVlogo.isinitialized "&timbraIVlogo.IsInitialized)
timbraIVlogo.Bitmap=logsocx (line 91)
The log is:
menuIVlogo.isinitialized false
The program have an error:
Error occurred on line: 91 (timbra)
Object was not initialized (UIImageView)
The program crash!!!!
I don't understand!!!!
Why?
Thanks
Marco
in a program named "menu" i have an imageview for Logo defined on Designer:
Public menuIVlogo As ImageView
Dim logsoc1 As String
Dim IVsoc1 As Bitmap
logsoc1="ssslogo.png"
IVsoc1.Initialize(File.DirAssets,logsoc1)
Log("menuIVlogo.isinitialized "&menuIVlogo.IsInitialized)
menuIVlogo.Bitmap=IVsoc1
The image is displayed and the log is:
menuIVlogo.isinitialized true
in a program named "timbra" (same project) i have an imageview for Logo defined on Designer:
Public timbraIVlogo As ImageView
Public logsocx As Bitmap
logsocx.Initialize(File.DirAssets,"ssslogo.png")
Log("timbraIVlogo.isinitialized "&timbraIVlogo.IsInitialized)
timbraIVlogo.Bitmap=logsocx (line 91)
The log is:
menuIVlogo.isinitialized false
The program have an error:
Error occurred on line: 91 (timbra)
Object was not initialized (UIImageView)
The program crash!!!!
I don't understand!!!!
Why?
Thanks
Marco
Last edited: