Memory Usage in ExecWB
-
Can you show us what
ExecWB()
is doing?Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
someobj.ExecWB(OLECMDID_PRINT, 0 , NULL, NULL); I used MS-WebBrowser ocx(CWebBrowser2)
Reagards Shiva
-
someobj.ExecWB(OLECMDID_PRINT, 0 , NULL, NULL); I used MS-WebBrowser ocx(CWebBrowser2)
Reagards Shiva
Whoops! I thought you had a different ExecWB() in your own namespace and asked for that code. I think agree with what David has said above.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
I don't see any problem there. Don't you like such a behaviour? BTW What is
ExecWB
?If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeCPallini wrote:
BTW What is ExecWB?
It's a method of both
IWebBrowser2
andCHtmlView
."Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
CPallini wrote:
BTW What is ExecWB?
It's a method of both
IWebBrowser2
andCHtmlView
."Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Maybe it's something internal to the
ExecWB()
function."Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Do u have any idea or solution how to overcome this problem..?
Reagards Shiva
-
Maybe it's something internal to the
ExecWB()
function."Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
void CWebBrowser2::ExecWB(long cmdID, long cmdexecopt, VARIANT* pvaIn, VARIANT* pvaOut) { static BYTE parms[] = VTS_I4 VTS_I4 VTS_PVARIANT VTS_PVARIANT; InvokeHelper(0x1f6, DISPATCH_METHOD, VT_EMPTY, NULL, parms, cmdID, cmdexecopt, pvaIn, pvaOut); } Actually its internally calling 'InvokeHelper' which may b using some stack..
Reagards Shiva
-
:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeWhat might be going wrong?? is it starting any new Process??? if yes, can i stop it? This ExecWb takin up huge memory (~20MB). i am sure about the huge number i mentioned (checked it in Task manager's Memory Usage - windowsXP). Any help is most appreciated or is there any other way that I can Print the html document (I am using CWebBrowser2).
Reagards Shiva
-
What might be going wrong?? is it starting any new Process??? if yes, can i stop it? This ExecWb takin up huge memory (~20MB). i am sure about the huge number i mentioned (checked it in Task manager's Memory Usage - windowsXP). Any help is most appreciated or is there any other way that I can Print the html document (I am using CWebBrowser2).
Reagards Shiva
Shivarudrayya H wrote:
What might be going wrong??
Probably nothing.
Shivarudrayya H wrote:
is it starting any new Process???
Probably not, since you see a huge increment of your application memory usage.
Shivarudrayya H wrote:
his ExecWb takin up huge memory (~20MB).
Why bother about. After all, it is doing the job for you.
Shivarudrayya H wrote:
Any help is most appreciated or is there any other way that I can Print the html document (I am using CWebBrowser2).
I don't know a lightweight approach, I'm not an expert about. Maybe
CWebBroweser2
support some kind of configuration, but it is only a guess. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
CPallini wrote:
BTW What is ExecWB?
It's a method of both
IWebBrowser2
andCHtmlView
."Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
What might be going wrong?? is it starting any new Process??? if yes, can i stop it? This ExecWb takin up huge memory (~20MB). i am sure about the huge number i mentioned (checked it in Task manager's Memory Usage - windowsXP). Any help is most appreciated or is there any other way that I can Print the html document (I am using CWebBrowser2).
Reagards Shiva
-
What might be going wrong?? is it starting any new Process??? if yes, can i stop it? This ExecWb takin up huge memory (~20MB). i am sure about the huge number i mentioned (checked it in Task manager's Memory Usage - windowsXP). Any help is most appreciated or is there any other way that I can Print the html document (I am using CWebBrowser2).
Reagards Shiva
Shivarudrayya H wrote:
This ExecWb takin up huge memory (~20MB).
And why does this concern you?
Shivarudrayya H wrote:
...(checked it in Task manager's Memory Usage - windowsXP).
Which can be deceiving. Read this, especially the last part.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne