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

C#

 
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 
GeneralRe: GC in Services Pin
Daniel Turini22-May-03 3:42
Daniel Turini22-May-03 3:42 
solidstore wrote:
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.


From what you're saying, it seems to be a bug in the .NET framework. Your ASP page hasn't changed, only the server is changing, but the components are no being released anymore. Are they MarshalByValue or MarshalByRef objects?

Depending on what you're doing, as a workaround, I suggest you to derive your classes from ServicedComponent and run them from inside a COM+ application, and export the application proxy, so the ASP page could call your components.

I use it all the time and it's very stable.


My latest article: GBVB - Converting VB.NET code to C#
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 
AnswerRe: Post Visual Inheritance? Pin
Arjan Einbu21-May-03 3:07
Arjan Einbu21-May-03 3:07 

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.