Sorry for dubble posting..
But i've got a bit further and have more information about the error.
I've set breakpoints on the point it gives the error.
And i'm thinking this may cause the fail:
First it says that the evt->srvID = 1 (= the serverID in loginserver.config) and _evt_type = 1 (= the servertype in loginserver.config) So it succeeds and says loggin in.
But then it goes back to the code : switch(nevt->_evt_type).
And then it says that the evt->srvID = 1 and _evt_type = 0.
The error is (I think) that the _evt_type changes from 1 to 0, while it is set in the loginserver.config to 1. So it can't connect. Am i right...? And how can i fix it.?