|
|
yes!
But I need only topic!
Don't look at me in that way!
|
|
|
|
|
white jungle wrote: After send 20000 messages,the memory requirement increase 2000K +.
How are you verifying this?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
According to Performence moitor ,I can find it!
Don't look at me in that way!
|
|
|
|
|
Are you sure that number is not just a "high-water mark?" In other words, like Task Manager, it must just be address space footprint of your module.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I have soled this problem now!
I am sure that the number is not the peek value.
I use the jms c lib in a multithread program,and whenever I create a text message,the lib will create the context for the message, so memory leaked.
And now,I use a work thread to send the message and everything looks fine except re-connect to server.If I re-connect to server due to network issue,it looks leak some memory.
Don't look at me in that way!
|
|
|
|
|
white jungle wrote: I have soled this problem now...If I re-connect to server due to network issue,it looks leak some memory.
It sounds like the problem has simply changed location.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Yes!I think .
I am testing the program now.
Now,it had sent 140000+ messages and memory increased 428K.
I want to keep the program running for 4 or 5 days.
each days it will send 144000 pieces of messages.
And each mesasge has 800 bytes content.
Hope it has a peek memory useage!
^_^
Don't look at me in that way!
|
|
|
|
|
Are you allocating memory someplace that is not being deallocated?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I use the lib in a simple way as follow:
When the application run,I will start a new thread which will be end while application die!
In the new thread I will check if there is any message in the message stack.If so,send it using JMS lib.or else,just wait a short while.
The stack manager was written using STL.
And I haven't allocate any memory explicity in my application.
Do you have any idea!
Today!I checked the running status of the application .
I find that there are only 524K memory increasement while sending 570000 messages.Maybe it's a good news.^_^
Don't look at me in that way!
|
|
|
|
|
hi
when we click "File" in menubar the popmenu get`s displayed ,then we select(not clicking just focusing) ->New in an application what functions get called?
eg:On selecting(not clicking) Edit->Copy the text displayed in the status bar is "Copies the current selection".So i would like to know which funtions get called?
|
|
|
|
|
Quite a lot of functions get called - the question is what do you need to do? If you want to modify status text, you can start with CMainFrame::GetMessageString
Igor Green
http://www.grigsoft.com/ - files and folders comparison tools
|
|
|
|
|
Hi,
How can we Change the Caption of a specific ID in String Table,at run time.Say for example when i check the menu item "File->New".The tooltip text of "print" icon should be changed to "Open a new file", In the toobar.
-- modified at 2:29 Friday 16th December, 2005
|
|
|
|
|
I think you should be able to modify resources at runtime, however easier would be overwriting CMainFrame::GetMessageString, which is called for tooltip\status text.
Igor Green
http://www.grigsoft.com/ - files and folders comparison tools
|
|
|
|
|
Using GetMessageString , we can retrive the text,Is there any function to set a new String.
|
|
|
|
|
I don't know how to change string table.
My idea was instead of doing this, you can override GetMessageString and return another string ID2 when asked for string ID1
Hope this helps,
Igor Green
http://www.grigsoft.com/ - files and folders comparison tools
|
|
|
|
|
RockyJames wrote: Is there any function to set a new String.
UpdateResource Function
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have 5 dsw files(DLL) loaded into a single project.
i have placed breakpoints in DLL A,B and C.The flow of control is from Dll A to
Dll B and then to Dll C.
on F5 the flow is as expected i.e debugger stops at A and then moves to B.
If i remove the breakpoint from DLL A and then try to debug, the control doesn't go to dll B.
I am not able to debug the code in Dll B.
Any idea whats wrong?
|
|
|
|
|
I think it is because VS recognizes breakpoints in the active project only, but I am not sure. You could hard-code breakpoints in the code also, like AfxDebugBreak(); or __asm int 3;
this is this.
|
|
|
|
|
i have made it as the active project but still it doesnt work
|
|
|
|
|
Hi Friends
I want to make a small IVR(Interactive Voice Response) system. Which shold be able to do certain work when user presses certain numbers from his phone.
I want to make it using C++/VC++. Is there any example availabe or any link or any book which can help ?
Waiting for your positive and quick reply
Thankx
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
|
Hi
i am using IShellExecuteHook to keep track of the file open operations. If I start notepad from start-->run i am getting the file name as notepad.exe . But If i have made a mistake in typing the name of the process windows will display a messagebox. but i am getting the filename
E.g:
in start->run dialog if i type notepd.exe instaead of notepad.exe i am getting the file name as notepd.exe . I dont want this to happen. Is there anyway by which the resule of the oepration can be obtained .
Thanks in advance.
|
|
|
|
|
I think the hook procedure is run before the command is executed, so you can decide if you want to go through with the operation. You will not get any result, because the operation is yet to be carried out.
As for obtaining the result of the operation, I think you will need to hook some function like CreateProcess() etc, maybe.
this is this.
|
|
|
|
|
hi
I am using IShellExecute hook to keep track of the file open operations. If i type notepad in start->run dialog then i am getting the file name as notepad. In MSDN it is inidcated that the ShellexecuteInfo structure gives a handle to appplication in which the file is opened. Is there any way by which the application name can be obtained.
Thanks.
|
|
|
|