|
|
i meant before switching on the systems
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1"> --[V]--
|
|
|
|
|
ATAN has some hardware to swith that..
My blogs:
http://blog.joycode.com/jiangsheng
http://blog.csdn.net/jiangsheng
http://bloglines.com/public/jiangsheng
Command what is yours
Conquer what is not
---Kane
|
|
|
|
|
what i want to do is just go through the network to control another pc's mouse and keyboard. example like i have 2 pc here, then i use 1 of the pc can control another pc mouse and keyboard only. izzit is go through by ip or? who know abt this?
nick
|
|
|
|
|
Now I can generate a clock at one pin of LPT port, by the way using Outport() and Sleep(t), but t min = 1ms, so that I only generate max freq = 500 Hz. I want to ganerate clock with higher freq (about 10 to 100 kHz). How to do that ?
Pls help me.
|
|
|
|
|
quangpk wrote: Sleep(t), but t min = 1ms, so that I only generate max freq = 500 Hz
False, it's even worse than that: as windows is not a real time OS, your 1 ms are likely to vary up to 15 msec (depending on a lot of things). So, you can't rely on Sleep for precise timings like that.
For the solution to your problem, I don't even know if this is possible to do that in windows. Maybe consider to move to a real-time OS (like eCOs,...). I don't know if this is possible for you. Even going at the driver level, I don't konw if this will be possible...
|
|
|
|
|
Hi,Every one:
I just use jms lib to send message to jboss server.
And I useing C to do this work.
But I doubt there is memory leak when call jms api.
I have a test with create one instance of Message and set the message with new text context when sending the message.
After send 20000 messages,the memory requirement increase 2000K +.
I don't know where I am wrong.
So,please anyone can send me a sample with call JMS lib in C language.
(include create context,connection ,send message and destroy all instance)
Thank you very much!
Don't look at me in that way!
|
|
|
|
|
|
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?
|
|
|
|