PostMessage and Send Message
-
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
-
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
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
-
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
-
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
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
-
I think the problem isn't the message you are sending but your painting rutines that maybe are not freeing the allocated resources.
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
-
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
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
-
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
just display the data on the GUI that comes from the DLL.
-
just display the data on the GUI that comes from the DLL.
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