Quote Originally Posted by VictorN View Post
Sounds like you leak some GDI resources. Could you show your actual code in onctlcolor() method?
Quote Originally Posted by saraswathisrinath View Post
But i never used any sound files in my project.
Dear SaraswathiSrinath,
"Sounds" in this context means "it looks like ...", so your program behavior "looks like" there is a GDI resources leak.

Quote Originally Posted by saraswathisrinath View Post
3. I taken the code from google how to set background color for dialog, so i used that code for all my dialog controls(GetDlgCtrlID()).
You may want to look at this very interesting and useful essay:
Changing Dialog Box/CFormView Background Color