Android Question Can I initialize in the Globals section

davepamn

Active Member
Licensed User
Longtime User
sub class_globals
dim oError as cErrorHandling
oError.initialize
end sub

The parser allows to initialize in the global section. It seems to work. However, when I tried this in a service module, it crashed my app. I had to remove the initialize from the globals section of the service module then it worked.
 

davepamn

Active Member
Licensed User
Longtime User
If you initialize a class in the globals in a service module, the application on the client crashes, in debug.
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
I remove all my initialize calls out of global in all modules.

The parser should warn the user that initialize is not allowed in the global sections
 
Upvote 0
Top