Virtual Memory low problem...

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

    #1

    Virtual Memory low problem...

    Hi,

    Another Friday afternoon problem to fix.

    Our application, seems to run fine for several hours, then pops up with a
    low virtual memory message. This sometimes then crashes the system, since it
    will then say one of the objects has not been instantiated.

    I'm assuming we've been a bit lax with the disposing of objects. Is there a
    difinitive list of things we should be disposing manually?

    The application is graphic intensive and we have been disposing of variosu
    graphic \ pens and brushes objects, but what about temporary bitmaps (i.e.
    backbuffers) etc.

    Any tips as to what else I might need to Dispose rather than let the GC have
    a goa t a unspecified point?

    rollasoc


  • Lynn Harrison

    #2
    Re: Virtual Memory low problem...

    anything that you are creating that has an IDispose interface should be
    disposed of as soon as you no longer need it. Anything else you should just
    ensure that any references to items that you no longer need gt set to null
    so that the garbage collection can tell it is no longer needed.

    Lynn

    "rollasoc" <hotmail@hotmai l.com> wrote in message
    news:OKv9DvzYDH A.1640@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi,
    >
    > Another Friday afternoon problem to fix.
    >
    > Our application, seems to run fine for several hours, then pops up with a
    > low virtual memory message. This sometimes then crashes the system, since[/color]
    it[color=blue]
    > will then say one of the objects has not been instantiated.
    >
    > I'm assuming we've been a bit lax with the disposing of objects. Is there[/color]
    a[color=blue]
    > difinitive list of things we should be disposing manually?
    >
    > The application is graphic intensive and we have been disposing of variosu
    > graphic \ pens and brushes objects, but what about temporary bitmaps (i.e.
    > backbuffers) etc.
    >
    > Any tips as to what else I might need to Dispose rather than let the GC[/color]
    have[color=blue]
    > a goa t a unspecified point?
    >
    > rollasoc
    >
    >[/color]


    Comment

    Working...