[SDL] NET2 & FE problem : lockup / access violation

Dinand Vanvelzen vanvelzen at skynet.be
Sun Apr 13 12:45:02 PDT 2003


Howdy folks,

i get have a problem where i keep getting : NET2_TCPACCEPTEVENT even though
my client socket which i made in delphi only connects once. i tracked down
the problem to the following piece of code :

**********************

int FE_PushEvent(SDL_Event *ev)
{
  SDL_LockMutex(eventLock);
  while (0 >= SDL_PushEvent(ev))
  {
    SDL_CondWait(eventWait, eventLock);
  }
  SDL_UnlockMutex(eventLock);
  SDL_CondSignal(eventWait);

  return 1;
}

**********************

it hangs in the while loop for a while then generates the access violation.
in the mean time more NET2_TCPACCEPTEVENT events keep comming in.
What can i do to solve this problem ?
if anyone want the executable of my chatserver just tell me and i'll mail it
so you can see the effect.

GreeTz
DV






More information about the SDL mailing list