Forum

Having a class named Application creates weird behavior on startup

Hey there,

This is on 5.0 preview 472. It seems that if I have a class named Application, Create is triggered twice. To repro, I simply created a class named Application that prints a debug message on Create, and placed a process node of this class in my Application patch.

This is what I get in the console when pressing F9

Stopping MyProjectApplication


Stopping Application


Starting MyProjectApplication_EjwhTVG27pjNBFdeeaIn1Y

Hey, I'm a debug message assigned to Create

Starting Application_C

Hey, I'm a debug message assigned to Create

If I simply rename the class to App and press F9, I’m getting this :

Stopping MyProjectApplication


Starting MyProjectApplication_EjwhTVG27pjNBFdeeaIn1Y

Hey, I'm a debug message assigned to Create

Here’s the test patch :

MyProject.vl (4.4 KB)

Thanks in advance!