Required resource [modified]
-
Hi all I am getting stranger problem.Application show "A required resource was" this message.I just memory leak check in application. Please help me
modified on Tuesday, November 23, 2010 6:30 AM
MsmVc wrote:
I am getting stranger problem.Application show "A required resource was" this message.
Your question is not very clear. Please post the exact message that you see, and explain where it comes from, compiler, linker, application etc.
MsmVc wrote:
I just memory leak but no memory leak in application.
What does this mean? Either you have a memory leak or you do not, it cannot be both.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
MsmVc wrote:
I am getting stranger problem.Application show "A required resource was" this message.
Your question is not very clear. Please post the exact message that you see, and explain where it comes from, compiler, linker, application etc.
MsmVc wrote:
I just memory leak but no memory leak in application.
What does this mean? Either you have a memory leak or you do not, it cannot be both.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
When i run the application read from excel file and add values in CListCtrl.That time i am getting this message. Yes you are right i have memory leak problem in application. Please help me
As I said in my previous answer, please show us the exact message you receive, it is impossible for us to guess what it might be. You should also show an extract of the code where the error occurs.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
As I said in my previous answer, please show us the exact message you receive, it is impossible for us to guess what it might be. You should also show an extract of the code where the error occurs.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
This is like trying to get blood out of a stone! :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
-
Was what? :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Hi all I am getting stranger problem.Application show "A required resource was" this message.I just memory leak check in application. Please help me
modified on Tuesday, November 23, 2010 6:30 AM
MsmVc wrote:
Application show "A required resource was" this message.
When exactly does it do this? Note: A response such as, "When the app is running." is not a useful answer.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
MsmVc wrote:
Application show "A required resource was" this message.
When exactly does it do this? Note: A response such as, "When the app is running." is not a useful answer.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
This is like trying to get blood out of a stone! :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
-
Thanks for your vital information. Can you tell how can i check GDI resources leak?Please help me
Take a look at your program and see what resources you are using (Fonts, Brushes, Bitmaps etc) and whether you are correctly disposing of them when finished. This is basic Windows programming that you really need to study and understand.
Just say 'NO' to evaluated arguments for diadic functions! Ash