Application.Open doesn't seem to be called


I did put the following code in my app.Open event:

MsgBox("Initialized") LocalSystem.Initialize
Where LocalSystem is a module.

However, I never see the Messagebox. It seems that the code is never called, I run into NilObjectExceptions in a control.Open event because classes aren’t instanciated.

I tried putting the same code in the Window.Open event, same. Messagebox doesn’t show, and Xojo debugger throws an error on a event.

Where is my logic flawed? I seem to miss something.

Nevermind: I did put that code in a App.Open Method instead of the Event. My bad.
It all works now!

do you have an app constructor?

And of course you are sure you have only one Application subclass?