Hi,

while running my program (using win32API and OpenGL) after some time the screen begins to deteriorate: Objects are drawn to wrong places, wrong colors used, objects missing and such).

I know that this can be triggered by not properly deleting device contexts after using them and the system eventually messes them up. At least the effect on my screen looks pretty much like it as I know from prior experiance.

So I checked on the usual suspects - which are quite numerous in my prog of 40,000 lines up to now - but without any real success. My question now is, if such a messing up of my display could be caused by other effects ?

I am still quite new at windows programming and for all the pain I took on clean programming there still might be some problem hidden in my code. Do GDI-objects, if forgotten to delete and created again and again yield the same problem ? Passing processed messages to DefWindowProc ? Any other issues like this ?

Just looking for input on where to search.
Thanks in advance

Norbert