Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Memory Management Issue in VB.NET

Memory Management Issue in VB.NET

Scheduled Pinned Locked Moved Visual Basic
csharpperformancehelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    satcomengineer
    wrote on last edited by
    #1

    I am encountering ExecutionEngineException and Null ReferenceException errors when opening a new form immediately after closing another form. The new form appears not to have enough memory to open. I have tried using Dispose on the closing form, but it has not helped. Anyone have any suggestions?

    D 1 Reply Last reply
    0
    • S satcomengineer

      I am encountering ExecutionEngineException and Null ReferenceException errors when opening a new form immediately after closing another form. The new form appears not to have enough memory to open. I have tried using Dispose on the closing form, but it has not helped. Anyone have any suggestions?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      This shouldn't be a problem with just a form object. I would think that it is because of a component or some other code behind that form. Forms themselves really don't take that much memory. Are you using ShowDialog to show forms? Are you calling Dispose on anny form that you use ShowDialog to show? If not, you're actually not releasing these forms and they are taking up memory and, more importantly, handles. If you run the system handle pool into the ground, you can get memory errors. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups