Hi, TechMuc
I mean that neither
Code:
while(1)
{
if(GetModuleHandle("Newton.dll")) { break; }
}

while(1)
{
if(GetModuleHandle("JointLibrary.dll")) { break; }
}


nor
Code:
while(!GetModuleHandle("Newton.dll"));
while(!GetModuleHandle("JointLibrary.dll"));


dont work as it expected frown


If i change
Code:
action CharacterController()
{
wait(3);
***
NewtonBody* rigidBody = NewtonCreateBody (nworld, collision); 
***
}


with
Code:
action CharacterController()
{
while(!GetModuleHandle("Newton.dll"));
while(!GetModuleHandle("JointLibrary.dll"));
***
NewtonBody* rigidBody = NewtonCreateBody (nworld, collision); 
***
}


i get a crash...


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro