I keep getting the error: "string iterator not dereferencable" and that leads me to the xstring class.
Im using globals to fill up a variable called mDebugText.
Globals.hGlobals.cppCode:static OgreBasis* ogreBasis;and in other filesCode:OgreBasis* Globals::ogreBasis = 0;As far as I can see there is nothing wrong with the contents of buf. Ive also been logging the contents of buf to see if the last value causes the crash. But there is nothing different about it.Code:char buf; char message; rc=recvfrom(s,buf,256,0,(SOCKADDR*)&remoteAddr,&remoteAddrLen); sprintf(message, "Received data: %s\n",buf); Globals::ogreBasis->mFrameListener->mDebugText = tmes;
Because the debugger leads me to the xstring class im guessing the coversion from char to string causes the problem but why?