Urgent - on site with GC problem!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Morris

    #1

    Urgent - on site with GC problem!

    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


  • Jon Skeet [C# MVP]

    #2
    Re: Urgent - on site with GC problem!

    On Jun 20, 12:46 pm, "Peter Morris" <n...@thanks.co mwrote:
    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

    Comment

    • Peter Morris

      #3
      Re: Urgent - on site with GC problem!

      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


      Comment

      • Jon Skeet [C# MVP]

        #4
        Re: Urgent - on site with GC problem!

        On Jun 20, 1:27 pm, "Peter Morris" <n...@thanks.co mwrote:
        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

        Comment

        • Peter Morris

          #5
          Re: Urgent - on site with GC problem!

          >>
          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)

          =============== =============== ===========


          Comment

          • T.J. Thornbrook

            #6
            Re: Urgent - on site with GC problem!

            "Peter Morris" <no@thanks.comw rote in message
            news:ODGdGEt0IH A.2384@TK2MSFTN GP04.phx.gbl...
            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? :)



            Comment

            • Peter Morris

              #7
              Re: Urgent - on site with GC problem!

              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)

              =============== =============== ===========


              Comment

              Working...