|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D - COM server and GC
In the COM server sample, CHello object is allocated and managed by gc, and the interface pointer is returned to outer clients. How can the gc know if the object is referenced outside? It is specified that some solutions need to be present when memory allocated by gc is exposed to outer clients, such as adding a root to the gc so gc wonĄŻt free the memory. However I read through all the source files and could not find any code that tells the gc not to free the CHello COM object. Nov 07 2004
|