loop for rendering a surface which I'll then blit on the main HDC.
Its lifecycle is the same as the main application.
So the question is, what about freeing resources?
The resources I won't be able to free because of the loop are the DIB and the surface contexts.
Wouldn't this be a memory leak?
Well if they are shared why do you need to free them?
because the surface object is created in the thread (outside the loop)
Обсуждают сегодня