I have a form called Form1 with a label called Label1
On the desktop it executes normally.
Not optimized compiled (Windows Exe) executes normally
Optimized compiled (Windows Exe) crashes with a message (translated from Dutch so originally it will look a little bit different):
This was not a problem with the 6.5
B4X:
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
lblName = "Main.Label1"
Control(lblName).Text = "Hello World"
Form1.Show
End Sub
On the desktop it executes normally.
Not optimized compiled (Windows Exe) executes normally
Optimized compiled (Windows Exe) crashes with a message (translated from Dutch so originally it will look a little bit different):
B4X:
An error occurred on sub __main_app_start
Unable to convert object of type Dbasic.EnhancedControls.CEnhancedLabel to type Dbasic.IText
This was not a problem with the 6.5