SamNainocard
Member
|
Game.Obj Crash On Exit (Only with LogConsole enabled)
Not sure if related to May update but now manually create Game.Obj related class with LogConsole enabled will crash on exit. (I normally exit by terminating Console, so I just notice recently. )
Testable on Tutorial.
Code:
/******************************************************************************/
Game.Item testy;
/******************************************************************************/
void InitPre() // init before engine inits
{
EE_INIT();
LogConsole();
}
/******************************************************************************/
bool Init() // initialize after engine is ready
{
Physics.create(EE_PHYSX_DLL_PATH).gravity(Vec(0, -9.8, 0));
ObjectPtr param=Objects.ptrRequire(UID(3865949516, 1110691029, 816879537, 746462228)); // Club in Tutorial
testy.create(*param);
return true;
}
/******************************************************************************/
void Shut() // shut down at exit
{
}
/******************************************************************************/
bool Update() // main updating
{
if(Kb.bp(KB_ESC))return false;
return true;
}
/******************************************************************************/
void Draw() // main drawing
{
D.clear(TURQ);
D.text (0, 0, "Hello to Esenthel Engine !");
}
/******************************************************************************/
(This post was last modified: 05-24-2017 03:30 PM by SamNainocard.)
|
|
05-24-2017 03:28 PM |
|
Esenthel
Administrator
|
RE: Game.Obj Crash On Exit (Only with LogConsole enabled)
Thank you, I'll upload the fix ASAP
|
|
05-25-2017 01:53 AM |
|
Esenthel
Administrator
|
RE: Game.Obj Crash On Exit (Only with LogConsole enabled)
Fix is now available.
|
|
05-25-2017 05:11 AM |
|