About Store Forum Documentation Contact



Post Reply 
Game.Obj Crash On Exit (Only with LogConsole enabled)
Author Message
SamNainocard Offline
Member

Post: #1
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. pfft)

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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Game.Obj Crash On Exit (Only with LogConsole enabled)
Thank you, I'll upload the fix ASAP
05-25-2017 01:53 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Game.Obj Crash On Exit (Only with LogConsole enabled)
Fix is now available.
05-25-2017 05:11 AM
Find all posts by this user Quote this message in a reply
Post Reply