Hi, thanks for the reply.
I based my code from here:
That method is called from PlayerManager::OnClientConnect, thats what i did
The server crash's exacly on this line, i make sure of that putting some debug print's
IClient *pClient = static_cast<IClient *>(pNetChan->GetMsgHandler());