I think I discovered what was causing my memory leak. I was using the following function and calling it from inside my main loop...
Code:
function camera_follow(ENTITY* ent)
{
	while(1) 
	{
		vec_set(camera.x,vector(-150,10,50));  // camera position relative to the player      
		vec_rotate(camera.x,ent.pan); // rotate the camera position with the player
		vec_add(camera.x,ent.x);      // add player position
		vec_set(camera.pan,vector(ent.pan,-10,0)); // look in player direction, slighty down      
		wait(1);
	}
}



So, basically it looks like it was creating vectors with the "vector" call over and over. So, this leads me to the question, how does lite-c do garbage collection? Can it be explicitly triggered. Clearly use of vector calls in a loop is bad though. Thanks. (Also by the way, I've installed the Windows Update patch and haven't seen any more blue screens since, so hopefully I'm good now.)


[A7 Commercial]