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. PostMessage and Send Message

PostMessage and Send Message

Scheduled Pinned Locked Moved C / C++ / MFC
c++comjsonperformancequestion
8 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.
  • A Offline
    A Offline
    AKSIVAKUMAR
    wrote on last edited by
    #1

    All, Can we post/send a message [ using PostMessage()/SendMessage() API ]from ATL COM DLL to the calling application window if we wanted to update the GUI periodically ? It seems it is consuming lot of memory when I post or send message from DLL to the applicaton GUI window. Thanks, AKS

    D K 2 Replies Last reply
    0
    • A AKSIVAKUMAR

      All, Can we post/send a message [ using PostMessage()/SendMessage() API ]from ATL COM DLL to the calling application window if we wanted to update the GUI periodically ? It seems it is consuming lot of memory when I post or send message from DLL to the applicaton GUI window. Thanks, AKS

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

      AKSIVAKUMAR wrote:

      It seems it is consuming lot of memory when I post or send message from DLL to the applicaton GUI window.

      How are you verifying this?


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      A 1 Reply Last reply
      0
      • A AKSIVAKUMAR

        All, Can we post/send a message [ using PostMessage()/SendMessage() API ]from ATL COM DLL to the calling application window if we wanted to update the GUI periodically ? It seems it is consuming lot of memory when I post or send message from DLL to the applicaton GUI window. Thanks, AKS

        K Offline
        K Offline
        Kharfax
        wrote on last edited by
        #3

        I think the problem isn't the message you are sending but your painting rutines that maybe are not freeing the allocated resources.

        A 1 Reply Last reply
        0
        • D David Crow

          AKSIVAKUMAR wrote:

          It seems it is consuming lot of memory when I post or send message from DLL to the applicaton GUI window.

          How are you verifying this?


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          A Offline
          A Offline
          AKSIVAKUMAR
          wrote on last edited by
          #4

          David, I am using a tool to verify the memory leak. Moreover, If i comment that particular line and do run the application again, it consumes less memory. Regards, AKS

          D 1 Reply Last reply
          0
          • K Kharfax

            I think the problem isn't the message you are sending but your painting rutines that maybe are not freeing the allocated resources.

            A Offline
            A Offline
            AKSIVAKUMAR
            wrote on last edited by
            #5

            Kharfax, To inform you that I don't have any painting routine inside my application for this purpose. Just I am posting a message to application handle(m_hWnd)to display them on the GUI. Please let me know if you have any suggestions ? Regards, AKS

            1 Reply Last reply
            0
            • A AKSIVAKUMAR

              David, I am using a tool to verify the memory leak. Moreover, If i comment that particular line and do run the application again, it consumes less memory. Regards, AKS

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

              AKSIVAKUMAR wrote:

              If i comment that particular line and do run the application again, it consumes less memory.

              What does the recipient of those messages do with them?


              "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

              "Judge not by the eye but by the heart." - Native American Proverb

              A 1 Reply Last reply
              0
              • D David Crow

                AKSIVAKUMAR wrote:

                If i comment that particular line and do run the application again, it consumes less memory.

                What does the recipient of those messages do with them?


                "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                "Judge not by the eye but by the heart." - Native American Proverb

                A Offline
                A Offline
                AKSIVAKUMAR
                wrote on last edited by
                #7

                just display the data on the GUI that comes from the DLL.

                D 1 Reply Last reply
                0
                • A AKSIVAKUMAR

                  just display the data on the GUI that comes from the DLL.

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

                  What type of data? How much? Is painting involved, or is it just text?


                  "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                  "Judge not by the eye but by the heart." - Native American Proverb

                  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