AnsweredAssumed Answered

C++ global constructors being called before main

Question asked by tcmichals on Jun 17, 2015
Latest reply on Jun 17, 2015 by tcmichals

All,

 

The function __check_and_acquire_mutex is called from a C++ constructor before main is called.  This function __check_and_acquire_mutex is calling VDK API before  VDK::Initialize() is invoked; This is should not be done correct, due to VDK not being initialized?  i.e can cause issues?

 

 

Current main code:

int main(int argc, char **argv)

{

    VDK::Initialize();

    VDK::Run();

}

Outcomes