Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: Inheritance Question Pin
J. Dunlap21-May-03 10:40
J. Dunlap21-May-03 10:40 
GeneralInteraction between Forms !!! Pin
DuongNguyen21-May-03 9:57
DuongNguyen21-May-03 9:57 
GeneralRe: Interaction between Forms !!! Pin
Tomas Petricek21-May-03 11:05
Tomas Petricek21-May-03 11:05 
GeneralRe: Interaction between Forms !!! Pin
DuongNguyen21-May-03 11:33
DuongNguyen21-May-03 11:33 
GeneralRe: Interaction between Forms !!! Pin
Omega50121-May-03 13:33
Omega50121-May-03 13:33 
GeneralGC in Services Pin
solidstore21-May-03 7:33
solidstore21-May-03 7:33 
GeneralRe: GC in Services Pin
leppie21-May-03 9:04
leppie21-May-03 9:04 
GeneralRe: GC in Services Pin
solidstore22-May-03 3:23
solidstore22-May-03 3:23 
Basically I have a Windows Service which is hosting some Remotable objects. These objects are also registered with COM.

Our test client in an ASP code which creates the COM objects. This activate the real .NET object inside my C# service. Everything work fine, except that memory allocs continue endlessly.

In desperation I changed the service to run as a standard process whilst I was debugging. Now memory is being correctly garbage collected. I'm using the perfmon counter to view the zig-zag profile.

Memory only increase when the code is run as a Service. I just have to replace the ServiceBase.Run method call with a long Sleep. To make my test run behave VERY differently.

The objects I'm creating for each test call are very small & stateless. They return a small string ("foo") from they only method call.

The ASP code sets the object to Nothing after the call. I'm assuming releasing the COM object, releases the CCW, which release the remote server object.
GeneralRe: GC in Services Pin
Daniel Turini22-May-03 3:42
Daniel Turini22-May-03 3:42 
GeneralRe: GC in Services Pin
solidstore22-May-03 3:54
solidstore22-May-03 3:54 
GeneralRe: GC in Services Pin
Daniel Turini22-May-03 4:02
Daniel Turini22-May-03 4:02 
GeneralRe: GC in Services Pin
solidstore22-May-03 4:21
solidstore22-May-03 4:21 
GeneralRe: GC in Services Pin
solidstore22-May-03 4:29
solidstore22-May-03 4:29 
GeneralRe: GC in Services Pin
Daniel Turini22-May-03 5:09
Daniel Turini22-May-03 5:09 
GeneralRe: GC in Services Pin
solidstore22-May-03 5:13
solidstore22-May-03 5:13 
GeneralRe: GC in Services Pin
Daniel Turini23-May-03 2:40
Daniel Turini23-May-03 2:40 
GeneralRe: GC in Services Pin
solidstore22-May-03 4:02
solidstore22-May-03 4:02 
GeneralRe: GC in Services Pin
Daniel Turini22-May-03 2:56
Daniel Turini22-May-03 2:56 
GeneralRe: GC in Services Pin
solidstore22-May-03 3:24
solidstore22-May-03 3:24 
GeneralRe: GC in Services Pin
solidstore22-May-03 3:16
solidstore22-May-03 3:16 
Questionis there a simple grid for windows forms? Pin
IsaacB21-May-03 6:04
IsaacB21-May-03 6:04 
AnswerRe: is there a simple grid for windows forms? Pin
Anonymous21-May-03 6:44
Anonymous21-May-03 6:44 
Generalsaving and changing a .tiff file's properties Pin
Chris Eatough21-May-03 5:51
Chris Eatough21-May-03 5:51 
Generalprinting issues Pin
RB@Emphasys21-May-03 5:14
RB@Emphasys21-May-03 5:14 
QuestionPost Visual Inheritance? Pin
Rocky Moore21-May-03 2:54
Rocky Moore21-May-03 2:54 

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.