G’Day,
(Sorry to repost this email - I just became a member of the list - I’ve
also updated some of the info)
We think that there may be a memory leak when you create and destroy
windows on the mac (we are using OSX 10.3.9). I’ve written this simple
test code and the memory for the process skyrockets. The memory is
constant when running the same code on a linux machine.
We have complied our test code against both SDL-1.2.8 and SDL-1.2.9.
Both exhibit
the same behaviour.
Are we doing something wrong?
#include <SDL.h>
#include <time.h>
int main() {
struct timespec sleepTime = { 1, 0 };
struct timespec rem;
for (; {
SDL_Init( SDL_INIT_VIDEO );
SDL_SetVideoMode( 600, 600, 0, SDL_OPENGL );
SDL_Quit();
/* The sleep stuff is just to allow the system monitor to get
in sync with the code
and also to give the user a chance to interupt */
nanosleep( &sleepTime, &rem );
}
}
Thanks for your help,
Robert Turnbull