Click here to Skip to main content
15,894,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Putting CMFCToolBar in CFormView problem Pin
Harsh Shankar24-Nov-10 2:54
Harsh Shankar24-Nov-10 2:54 
AnswerRe: Putting CMFCToolBar in CFormView problem Pin
Eugen Podsypalnikov24-Nov-10 21:42
Eugen Podsypalnikov24-Nov-10 21:42 
QuestionRequired resource [modified] Pin
MsmVc22-Nov-10 22:59
MsmVc22-Nov-10 22:59 
AnswerRe: Required resource Pin
Richard MacCutchan22-Nov-10 23:34
mveRichard MacCutchan22-Nov-10 23:34 
GeneralRe: Required resource Pin
MsmVc23-Nov-10 0:30
MsmVc23-Nov-10 0:30 
GeneralRe: Required resource Pin
Richard MacCutchan23-Nov-10 0:47
mveRichard MacCutchan23-Nov-10 0:47 
GeneralRe: Required resource Pin
MsmVc23-Nov-10 0:49
MsmVc23-Nov-10 0:49 
GeneralRe: Required resource Pin
Richard MacCutchan23-Nov-10 1:44
mveRichard MacCutchan23-Nov-10 1:44 
This is like trying to get blood out of a stone! Mad | :mad:

State exactly where you get this message, in a popup window, from your application, from the compiler, from some other program ... If it is in a popup window then show both the title of the window and the message.

If it comes from your program then show the code where the error occurs.

Remember, we cannot see your screen when you get this problem so we have absolutely no way of knowing where this message is coming from.


OK I did some research myself and found this:
He doesn't run out of memory, but of GDI resources. It is possible to encounter a situation, where (let's say) 500 MB of memory are free, but no further GDI objects (icons, fonts, brushes, DCs, etc.) can be allocated. At this point it's possible that menus don't open anymore, icons disappear, toolbars disappear, texts are written with wrong fonts, etc. ...or even worse...

This is usually due to an application which allocates GDI objects, but doesn't free them correctly. Because GDI objects are limited and managed globally (not locally for each application), a buggy application can affect the whole system.



Given that you have admitted you have a memory leak in your program I suspect you may also have an issue with unreleased GDI objects. I suggest you go back and inspect your code to see if this is the problem.
Just say 'NO' to evaluated arguments for diadic functions! Ash

GeneralRe: Required resource Pin
MsmVc23-Nov-10 17:34
MsmVc23-Nov-10 17:34 
GeneralRe: Required resource Pin
Richard MacCutchan23-Nov-10 21:33
mveRichard MacCutchan23-Nov-10 21:33 
QuestionRe: Required resource Pin
David Crow23-Nov-10 3:06
David Crow23-Nov-10 3:06 
QuestionRe: Required resource Pin
David Crow23-Nov-10 3:08
David Crow23-Nov-10 3:08 
AnswerRe: Required resource Pin
Richard MacCutchan23-Nov-10 3:21
mveRichard MacCutchan23-Nov-10 3:21 
QuestionProblem Initialising derived class Pin
Still learning how to code22-Nov-10 22:33
Still learning how to code22-Nov-10 22:33 
QuestionRe: Problem Initialising derived class Pin
CPallini22-Nov-10 22:43
mveCPallini22-Nov-10 22:43 
AnswerRe: Problem Initialising derived class Pin
Still learning how to code23-Nov-10 0:14
Still learning how to code23-Nov-10 0:14 
GeneralRe: Problem Initialising derived class Pin
CPallini23-Nov-10 0:40
mveCPallini23-Nov-10 0:40 
GeneralRe: Problem Initialising derived class Pin
Still learning how to code23-Nov-10 1:24
Still learning how to code23-Nov-10 1:24 
GeneralRe: Problem Initialising derived class Pin
CPallini23-Nov-10 1:25
mveCPallini23-Nov-10 1:25 
AnswerRe: Problem Initialising derived class Pin
Richard MacCutchan22-Nov-10 23:31
mveRichard MacCutchan22-Nov-10 23:31 
GeneralRe: Problem Initialising derived class Pin
Still learning how to code23-Nov-10 1:46
Still learning how to code23-Nov-10 1:46 
QuestionIcon of MessageBox not display. Pin
Le@rner22-Nov-10 18:44
Le@rner22-Nov-10 18:44 
AnswerRe: Icon of MessageBox not display. Pin
Luc Pattyn22-Nov-10 20:35
sitebuilderLuc Pattyn22-Nov-10 20:35 
QuestionRe: Icon of MessageBox not display. Pin
David Crow23-Nov-10 3:11
David Crow23-Nov-10 3:11 
AnswerRe: Icon of MessageBox not display. Pin
Le@rner23-Nov-10 17:09
Le@rner23-Nov-10 17:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.