Click here to Skip to main content
15,907,497 members
Home / Discussions / COM
   

COM

 
QuestionAccessing a C# control from C++ Pin
Metabug30-Oct-06 9:29
Metabug30-Oct-06 9:29 
Questionhow to access a COM component from ASP.net? Pin
voorugonda prashanth29-Oct-06 23:18
voorugonda prashanth29-Oct-06 23:18 
GeneralRe: how to access a COM component from ASP.net? Pin
prasad_som7-Nov-06 18:35
prasad_som7-Nov-06 18:35 
QuestionWhy the Release() don't call the class destructor? Pin
AIMrus28-Oct-06 23:56
AIMrus28-Oct-06 23:56 
QuestionHelp! My COM add-in for outlook can run only once, why? Pin
OctopusThu28-Oct-06 19:05
OctopusThu28-Oct-06 19:05 
AnswerRe: Help! My COM add-in for outlook can run only once, why? Pin
OctopusThu31-Oct-06 18:16
OctopusThu31-Oct-06 18:16 
QuestionMemory Allocation of COM Objects Pin
Killer326-Oct-06 18:31
Killer326-Oct-06 18:31 
AnswerRe: Memory Allocation of COM Objects Pin
Mike Dimmick27-Oct-06 3:47
Mike Dimmick27-Oct-06 3:47 
R.ilan thendral wrote:
Question 1:
When we create an COM object in a Process where does the memory of the COM objects get allocation?


Wherever the code that implements the class factory allocates it. Typically this will be on one of the heaps but sometimes a small number of static objects are used.

Question 2:
Does the memory allocated to the COM object contributed to increase in Virtual memory of the process where it is instantiated.?


Potentially. The heap manager manages a large block of virtual address space for each heap, so sometimes allocating from the heap can be satisfied from the existing virtual address space allocated to the heap, and sometimes the heap has to grow to satisfy the new allocation.

Question 3:
What is the relation between virtual memory of a process and private bytes of the process?


It's hard to do justice to that question in a small amount of space. The virtual address space is how the process views memory; at any time, most of the virtual address space isn't backed by anything - if you try to write to or read from them, you just get an access violation. Virtual addresses can be mapped to memory-mapped files, shared memory sections, can be marked as reserved, or can point to memory that can only be accessed by this process - these are 'private bytes'.

Task Manager confuses everything by referring to 'private bytes' as 'VM Size'.

In turn, only some of the process's virtual addresses are actually in physical memory at any given time. The working set ('Mem Usage' in Task Manager) is the set of pages belonging to the process (memory-mapped files, shared, or private) which are currently in physical memory. The processor and operating system work together to give the illusion that the code and/or data are all accessible; if the process references (reads from or writes to) a page not currently in physical memory, the processor raises a page fault exception, which the OS handles by reading the page from disk, then setting a data structure (the page table entry) to point to the physical memory containing that page.

Stability. What an interesting concept. -- Chris Maunder

QuestionAutomatic instantiation of remote COM from other operating systems Pin
Raphael Amorim26-Oct-06 7:14
professionalRaphael Amorim26-Oct-06 7:14 
AnswerRe: Automatic instantiation of remote COM from other operating systems Pin
iserik6-Nov-06 5:42
iserik6-Nov-06 5:42 
GeneralRe: Automatic instantiation of remote COM from other operating systems Pin
Raphael Amorim17-Nov-06 6:10
professionalRaphael Amorim17-Nov-06 6:10 
Questionprogamatically call WindowActivate event Pin
K edar V25-Oct-06 21:57
K edar V25-Oct-06 21:57 
QuestionCreateInstance failed in Windows service Pin
hybride25-Oct-06 19:32
hybride25-Oct-06 19:32 
AnswerRe: CreateInstance failed in Windows service Pin
Jonathan [Darka]26-Oct-06 4:25
professionalJonathan [Darka]26-Oct-06 4:25 
GeneralRe: CreateInstance failed in Windows service Pin
hybride27-Oct-06 1:08
hybride27-Oct-06 1:08 
GeneralRe: CreateInstance failed in Windows service Pin
Jonathan [Darka]27-Oct-06 3:24
professionalJonathan [Darka]27-Oct-06 3:24 
AnswerRe: CreateInstance failed in Windows service Pin
hybride29-Oct-06 20:26
hybride29-Oct-06 20:26 
GeneralRe: CreateInstance failed in Windows service Pin
Jonathan [Darka]29-Oct-06 21:39
professionalJonathan [Darka]29-Oct-06 21:39 
AnswerRe: CreateInstance failed in Windows service Pin
hybride29-Oct-06 21:50
hybride29-Oct-06 21:50 
GeneralRe: CreateInstance failed in Windows service Pin
Jonathan [Darka]30-Oct-06 3:24
professionalJonathan [Darka]30-Oct-06 3:24 
GeneralRe: CreateInstance failed in Windows service Pin
hybride30-Oct-06 23:49
hybride30-Oct-06 23:49 
QuestionHow to mashal IElementBehaviorFactory interface? Pin
jinhaibo25-Oct-06 16:55
jinhaibo25-Oct-06 16:55 
AnswerRe: How to mashal IElementBehaviorFactory interface? Pin
Stephen Hewitt25-Oct-06 18:47
Stephen Hewitt25-Oct-06 18:47 
GeneralRe: How to mashal IElementBehaviorFactory interface? Pin
jinhaibo25-Oct-06 19:37
jinhaibo25-Oct-06 19:37 
GeneralRe: How to mashal IElementBehaviorFactory interface? Pin
Stephen Hewitt25-Oct-06 19:44
Stephen Hewitt25-Oct-06 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.