Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CBrush

Status
Not open for further replies.

Lorey

Programmer
Feb 16, 2003
88
0
0
SG
Hi experts,

I have a software GUI which uses a lot Cbrush. Sometimes, all the monitor just went white except for all the buttons in my GUI. Is this a possible cause of CBrush? It does not throw any specific error. One time, when the pc went out of memory, the monitor just went white.

 
Bugs in your code leaking resources seems the most likely problem to me.

Every time you create a resource, read the manual to find out if/how you're supposed to dispose of it when you're done.

Your code may not be throwing an error, but I bet that's because you're not checking the status returns of a great many functions.



--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top