|
i have created a menu item and this menu has 3 sub menus. but all the 3 are disabled. how do i enable this menus?
|
|
|
|
|
Did you have declare any event for them?
|
|
|
|
|
ya i created an event on them.. once geting active when i click on the screen.
|
|
|
|
|
How did you make sub menus?
|
|
|
|
|
checked the popup check box and added the menus. i guess this is the way to make pop up menus.
|
|
|
|
|
Normally if you have no function for the menu they will be inactive. Do you have a function for the Menu?
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Yeah s(he) declare functions for menus previous.
|
|
|
|
|
Okay. Then try repeating that action of putting menues. The last time that happened to me i remade the menues and put handlers for them and it worked. Success.
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
|
Did you make it visual or with write the code?
|
|
|
|
|
Sorry i've been away for a while. Mine i made it with visual. Then added events. I'm still going to be away for quite some time i'm just hoping i can help you more.
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Of course it was not my question.
|
|
|
|
|
I almost forgot. Anyway, i knew that
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
|
Hello everyone,
I can understand hard page fault is we need to load from page file into working set (RAM). But what is a soft page fault? I am confused.
thanks in advance,
George
|
|
|
|
|
|
Thanks Hamid,
Great links. My question is more about soft page fault. As mentioned in the links,
--------------------
If a process requests a page in memory and the system cannot find the page at the requested location, a page fault occurs. If the page is elsewhere in memory, the fault is a soft page fault.
--------------------
What means can not find a page at specified address but the page is located somewhere in the memory? I am confused. Could you provide more information please?
regards,
George
|
|
|
|
|
On this link you can find your answer of course I think your questions are dependent together(do you want to make a program ).
http://lwn.net/Articles/257209/[^]
|
|
|
|
|
Thanks Hamid,
Great link. Do you have any ideas what is soft page fault in your minds?
regards,
George
|
|
|
|
|
If you need to values of memory that its not on the Main memory that it usualy goes to place that its name is page pool,but if you want to have more info about it Page fault notes[^] good for you.
|
|
|
|
|
Thanks Hamid!
Great note! I read through is and do not understand what the 2 situations below mean when there is soft page fault. Could you give more information please?
1. wants to be zero (called ‘demand zero’ pages)
2. when a page is written to for the first time (‘copy on write’ pages)
regards,
George
|
|
|
|
|
|
Great link, Hamid!
I have the parts which I had question and for the demand zero page fault, here is what the article saying,
What means "a process first references newly allocated virtual memory pages"? And "These do not involve the pagefile at all"? I am confused if it does not involve any pagefile at all? Why there is something called page fault?
Any ideas? Could you some some pseudo code about this scenario please?
--------------------
Demand Zero Page Faults – these happen when a process first references newly allocated virtual memory pages. These do not involve the pagefile at all. Any process that does frequent memory allocations and de-allocations will experience a significant number of Demand Zero Page Faults. Processing these events is a very low overhead activity and does not indicate that demand for memory has exceeded the amount of available RAM. Very high Demand Zero Page Fault rates are quite common for some applications but this by itself has little affect on performance. The design and implementation of the application affects the rate of Demand Zero Page Faults the application experiences, so this can not be changed by adding RAM or reconfiguring the pagefile.
--------------------
regards,
George
|
|
|
|
|
George_George wrote: for the demand zero page fault, here is what the article saying,
What means "a process first references newly allocated virtual memory pages"? And "These do not involve the pagefile at all"? I am confused if it does not involve any pagefile at all?
There is no need to use the paging file because the memory page has not been used by the process yet. If the process hasn't touched the page, there is nothing to save to the paging file. The page in question has been allocated but not yet used. When it is first touched, all the memory paging system has to do is zero-fill the page and make it valid for the process'es address space. Once the process has touched the page, any page fault on that page will be something other than a demand zero page fault.
Judy
|
|
|
|
|
Thanks Judy, great!
Your reply is great! I have made some self-study as well. There is a situation which we missed when there is soft page fault, which is not included in any case we mentioned before.
Do you agree? Any comments about my new findings?
This new case is mentioned here,
http://support.microsoft.com/kb/108449/en-us
--------------------
Process pages that are paged out of your process space are moved into the "standby list," where they remain until sufficient free RAM is available, or until system memory is low and they need to be reused. If these pages are accessed by your process while they are still on the standby list and more RAM has become available, they will be "soft-faulted" back into the working set. This does not require any disk access, so it is very quick. Therefore, even though you have an upper limit to the size of your working set, you can still have quite a few process pages in memory that can be pulled back into your working set very quickly.
--------------------
regards,
George
|
|
|
|