Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just finished developing a windows application in C++.
Although the whole program is running fine it has a some peculiar problems explained
below.

My application uses a two different data-bases of two different types of records.
I handle all data base operations explicitly on my own using C I/O (i.e fread, fwrite and fseek).

I notice that once the application handles several records, the display starts getting blurred.Also, after several more records have been handled the dialogue boxes starts getting invisible. Why are these so?

Another strange phenomenon is that, after the application handles several data bases in a certain routine, there occurs a seeming plash of cloud on the computer screen that hides almost all display(including the operating system's task's bar) and whatever is visible of the window frame are clearly blurred.

I notice that the blurring occurs more readily when the display has graphics especially JPEGS.

What could be the cause of these?

Is it because my classes are large?
Is it because my functions are very long?
Is it because I use a laptop and not a desktop computer.
Is it my computers VGA card.
Is it because I create and handle the data base-base with fread, fwrite and fseek rather than using Oracle and SQL?

What can be the cause and what are (or is) the solutions?
Posted

1 solution

There is a massive lost of GDI objects in your program. Use the task manager to observe the usage of GDI objects in your application.
These objects can be a result of the functions:
CreateBrush, CreatePen, CreateIcon, CreateCursor, CreateBitmap and so on.
All these objects MUST be released by the appropiate release function or DeleteObject function. The objects must be unselected from the paint dc.
Regards.
 
Share this answer
 
Comments
Albert Holguin 31-Jul-11 23:08pm    
seems like this could be a cause... my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900