GuiEditorGui.cs weirdness
by DIAG · in Torque Game Engine · 08/19/2004 (4:36 am) · 4 replies
Hello,
Okay, this may seem like an odd question...but does anyone know what C++ code is called when GuiEditorGui.cs is being exexed by the console. Its just that I have created a class who's constructor is being called when GuiEditorGui.cs is being execed, even though I have not explicitally called the constuctor, or the new operator etc. the c++ class is a console object as i wish to interact with it via script....this is really bugggin me....can anybody help out?????/
Damien
Okay, this may seem like an odd question...but does anyone know what C++ code is called when GuiEditorGui.cs is being exexed by the console. Its just that I have created a class who's constructor is being called when GuiEditorGui.cs is being execed, even though I have not explicitally called the constuctor, or the new operator etc. the c++ class is a console object as i wish to interact with it via script....this is really bugggin me....can anybody help out?????/
Damien
#2
08/19/2004 (4:47 am)
Hmm..that seems to be the case alright. it seems like the destructor is called soon after the constructor. this happens multiple times tho...
#3
08/19/2004 (4:50 am)
During initialization, and at other times, the engine will create instances of objects and then destroy them. It does this to "see" what there is. Anything you build should be set to handle this.
#4
08/19/2004 (4:57 am)
That sounds like a pretty reasonable explanation. i dont think it was affecting my code but it was annoying me...thanks for your help
Torque Owner Brett Fattori
- Brett