Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Required resource [modified]

Required resource [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
helpperformancelearning
11 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MsmVc
    wrote on last edited by
    #1

    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

    L D 2 Replies Last reply
    0
    • M MsmVc

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • L Lost User

        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

        M Offline
        M Offline
        MsmVc
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • M MsmVc

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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

          M 1 Reply Last reply
          0
          • L Lost User

            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

            M Offline
            M Offline
            MsmVc
            wrote on last edited by
            #5

            hello sir i am getting this "A required resource was" nothing more.

            L D 2 Replies Last reply
            0
            • M MsmVc

              hello sir i am getting this "A required resource was" nothing more.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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

              M 1 Reply Last reply
              0
              • M MsmVc

                hello sir i am getting this "A required resource was" nothing more.

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • M MsmVc

                  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

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  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

                  L 1 Reply Last reply
                  0
                  • D David Crow

                    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

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    David, I Googled that exact message and found a few hits, strangely enough. See my last response to the OP.

                    Just say 'NO' to evaluated arguments for diadic functions! Ash

                    1 Reply Last reply
                    0
                    • L Lost User

                      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

                      M Offline
                      M Offline
                      MsmVc
                      wrote on last edited by
                      #10

                      Thanks for your vital information. Can you tell how can i check GDI resources leak?Please help me

                      L 1 Reply Last reply
                      0
                      • M MsmVc

                        Thanks for your vital information. Can you tell how can i check GDI resources leak?Please help me

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        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

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups