Urgent - on site with GC problem!

P

Peter Morris

I have a win2003 server. For a user profile it is set to "Start the
following program at login". This is a .NET 2.0 WinForm application. At no
point does the .NET garbage collector collect the unused memory. If this
option is not set and the user starts the app manually the GC runs and all
is well. Is anyone familiar with this at all? I'd like to enable this
option because it only lets them run the specified app and doesn't show a
start button etc, but I really need the GC as the server is running out of
memory!

Help appreciated, I am on site with an app running out of memory due to the
way they start the program when the user logs in!


Regards


Pete
 
J

Jon Skeet [C# MVP]

I have a win2003 server.  For a user profile it is set to "Start the
following program at login".  This is a .NET 2.0 WinForm application.  At no
point does the .NET garbage collector collect the unused memory.  If this
option is not set and the user starts the app manually the GC runs and all
is well.  Is anyone familiar with this at all?  I'd like to enable this
option because it only lets them run the specified app and doesn't show a
start button etc, but I really need the GC as the server is running out of
memory!

Help appreciated, I am on site with an app running out of memory due to the
way they start the program when the user logs in!

Just as a temporary workaround, what happens if you write another
application which does nothing but start the normal app? That might
make it start in a more "normal" way instead of doing whatever's odd
at the moment.

Does sound very weird though...

Jon
 
P

Peter Morris

Error message "Cannot start application....." naming the console app I wrote
to start the WinForm app.

I'd phone MS support but £199 + VAT???


Any other ideas?


Pete
 
J

Jon Skeet [C# MVP]

Error message "Cannot start application....." naming the console app I wrote
to start the WinForm app.

Eek - with no more information? Does that user have enough security to
access that app? If you make the app do nothing but log something to
disk, does it work? How about if you make it a non-Console app - make
it a WinForms app that never brings up a form. It could be that it
can't allocate a console...
I'd phone MS support but £199 + VAT???

Any other ideas?

Not beyond the ones above for getting my original idea to work.
Hopefully someone with more of a clue will chime in...

Jon
 
P

Peter Morris

Eek - with no more information? Does that user have enough security to
access that app? If you make the app do nothing but log something to
disk, does it work? How about if you make it a non-Console app - make
it a WinForms app that never brings up a form. It could be that it
can't allocate a console...
<<

Actually it's now doing this with the original app too, someone has changed
the user settings and now it seems this option is not permitted. Oh well
:)



--
Pete
=========================================
I use Enterprise Core Objects (Domain driven design)
http://www.capableobjects.com/
=========================================
 
T

T.J. Thornbrook

Peter Morris said:
Error message "Cannot start application....." naming the console app I
wrote to start the WinForm app.

I'd phone MS support but £199 + VAT???


Any other ideas?

<putting on flame retardant underpants>

Switch to Delphi? :)
 
P

Peter Morris

Copy an EXE to Program Files as admin and it is not automatically available
to all users, I think that was the 2nd problem. I will do some tests and
report back.



--
Pete
=========================================
I use Enterprise Core Objects (Domain driven design)
http://www.capableobjects.com/
=========================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top