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
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Possible memory leak in System.Windows.Forms (Icon property)

Possible memory leak in System.Windows.Forms (Icon property)

Scheduled Pinned Locked Moved .NET (Core and Framework)
performancehelpquestion
1 Posts 1 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.
  • P Offline
    P Offline
    Palladino
    wrote on last edited by
    #1

    Hi, I have two forms: the principal and what will be called. The first possesses a button and the second anything it contains. The code of the button is like this simple:Form2 f = new Form2 (); f.Show ();
    PROBLEM: Making an analysis of the instances created during the processes I arrived in a subject that, for me, it is stranger: Before the form2 call ---------------------- Instances of the class Icon: 2 (I imagine that is one of the main form and one of the application) After the form2 call --------------------- Instances of the class Icon: 3 (+1, that´s OK) After the form2 closing ------------------------ Instances of the class Icon: 3 (that is a leak or am I being paranoid?) Obs.: The fact of the form to be not modal, it doesn't alter the values. Hugs, Marcelo Palladino Brazil

    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