Welcome! Log In Create A New Profile

Advanced

Green screen on exit

Posted by diego_pmc 
Green screen on exit
June 05, 2010 01:10PM
I read somewhere that if you get a noisy green screen when exiting the application it means there are memory leaks.If that's true, it seems I don't have any, since (in normal conditions) my app exits as it should (in fact, I've been really careful about memory leaks). However, if I 'force it', that is if I try to close it as soon as it opens I get a green screen.

I thought it might be a synchronization problem (either when loading a buffer from an external image file, or when rendering). Maybe someone could help me out with ways to fix this. It's not that big of a problem, but I'd rather see it gone.

EDIT: I should also add that according to the log file my app produces, there are no leaks.



Edited 3 time(s). Last edit at 06/05/2010 01:37PM by diego_pmc.
Re: Green screen on exit
June 07, 2010 08:24AM
it's not related to memory leak.
It's how applications initialize video.

try to add following code at the end of main:

VIDEO_ClearFrameBuffer(vmode, xfb, COLOR_BLACK);
VIDEO_SetNextFramebuffer(xfb);
VIDEO_SetBlack(1);
VIDEO_Flush();
VIDEO_WaitVSync();
Sorry, only registered users may post in this forum.

Click here to login