|
Did you use of server that you want to set System catche
|
|
|
|
|
Thanks Hamid,
My question is answered. System Cache is something for application purpose, Kernel memory is for kernel internal usage.
regards,
George
|
|
|
|
|
Good
|
|
|
|
|
Thanks Hamid,
I appreciate your patience help.
regards,
George
|
|
|
|
|
Thank you,
Do you live in china?
|
|
|
|
|
Hello everyone,
I heard some points that the memory allocated by new does not belongs to virtual memory, and onlymemory allocated by VirtualAlloc belongs to virtual memory.
1.
I think this statement is not correct. Since all memory touched by current process belongs to virtual memory (either reserved or committed). No matter how (through which API) developer is using.
2.
And new always utilize VirtualAlloc in underlying internal implementation code, so new (in implementation point of view) will consume virtual memory -- the same as what VirtualAlloc does.
Are my points (1) and (2) correct?
thanks in advance,
George
|
|
|
|
|
All of the application's memory belongs to virtual one.
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.
[my articles]
|
|
|
|
|
Thanks CPallini,
1.
So, I think you mean the memory either allocated by new or allocated by VirtualAlloc should be counted as part of the virtual memory in the Perfmon virtual bytes counter, right?
2.
I think new is always implemented through HeapAlloc, and do you think HeapAlloc is implemented using VirtualAlloc?
3.
If so, then new is implemented through VirtualAlloc?
regards,
George
|
|
|
|
|
Delve into the Microsoft VC++ runtime library, you'll find that new operator is implemented in terms of VirtualAlloc .
A Chinese VC++ programmer
|
|
|
|
|
Thanks zengkun100!
So, both the memory allocated by new and VirtualAlloc should be counted as a part of virtual memory counter of Perfmon, right?
regards,
George
|
|
|
|
|
In fact, you should treate every piece of memory used in your process as virtual memory. Windows manages memory allocate and deallocate, and where does the memory really exist is transparent to you.
A Chinese VC++ programmer
|
|
|
|
|
Thanks zengkun100,
My question is answered.
regards,
George
|
|
|
|
|
Each porcess has a default heap, new operator uses heap functions that internally manages virtual memory for you. However you are free to create additional number of heaps for your process.
Where as virtual memory functions directly allocates memory in terms of pages.
There are more parts to the windows memory subsystem like Global memory and local memory also.
|
|
|
|
|
Thanks for your comments, suhredayan!
regards,
George
|
|
|
|
|
I write a service in VC6 App consol, this service install and started but when system restart this service not start because stratup is manual , now I want set startup to automatic with programming.
please help me,
I search in codeproject but not found any objetc for that.
|
|
|
|
|
|
How can set a startup for a service from manual to automatic with write code in Visual C6....
|
|
|
|
|
use ChangeServiceConfig() with required dwStartType.
|
|
|
|
|
The error is reported before the ASSERT
BOOL CMyMagaApp::InitInstance()
{
ASSERT(0);
...
}
Windows cannot find 'C:\a.myfile'. Make sure you typed the name correctly,
and then try again. To search for a file, click the Start button, and then
click Search.
However, the file is opened successfully.
If the app is started ahead before I double click a file, no such an error.
modified on Sunday, January 13, 2008 2:54:16 AM
|
|
|
|
|
I looking for source codes in VC++ Express that I can use to create a
Telnet BBS (Server)
FTP (Server)
SMTP (Server)
I just fount a lot of old stuff and was hoping there would be some thing newer from 2000 and above
And PLEASE include the doc's for setting and compiling.
|
|
|
|
|
Did you search on the codeproject?
|
|
|
|
|
Yes, I have. The only code I can find is dated 1998 and older. This web site and forums section was my last hope.
Thanks
Joe
Or maybe your not talking about searching on google.com. If thats the case. No. whats codeproject.
|
|
|
|
|
bigjoe11a wrote: whats codeproject
It is a magical world full of programming knowledge.
Did you ever read the content of your browser's address box? Do it now!
Ever noticed the Search box on top of this page? Use it!
|
|
|
|
|
Except Lounge forum that we have,its other world ont the codeproject.
|
|
|
|
|
I have been there and done that and still can't find what I'm looking for. thats why I posted this message.
|
|
|
|