[SDL] SDL_Quit

Alexander Gayevoy Editor at echo.ru
Tue Aug 13 14:19:01 PDT 2002


Hello Sam,

Saturday, August 10, 2002, 18:20:23, you wrote:

SL> This is often caused by memory problems in your program.
SL> Try using a debug memory allocation tool.

  Well, I`ve found something strange...

     If I have an array of SDL_Surface* and want to replace one element
     like:

     CArray <SDL_Surface*, SDL_Surface*> ar;
     ...
     SDL_Surface * p = ar.GetAt(i);
     ar.SetAt(i,newp);
>>     SDL_FreeSurface(p);
     ...
     SDL_Quit();

     If I free the surface "p" by
     "SDL_FreeSurface(p)", SDL_Quit will never finish, if I dont free
     the surface, it`s ok.

     What can it be?
     

-- 
Best regards,
 Alexander                            mailto:Editor at echo.ru






More information about the SDL mailing list