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. C#
  4. window handle error

window handle error

Scheduled Pinned Locked Moved C#
csharphelpperformancelounge
3 Posts 3 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.
  • M Offline
    M Offline
    madhan_mss
    wrote on last edited by
    #1

    Hi, In our window based C#.net application, we are getting this "Window Handle Error" in a random manner. Initially we thought it could be a memory issue but sometimes even if there is enough memory, the same error comes. we are unable to track the root of this error. Any input regarding this error is most welcome. Thanks, Madhan

    C D 2 Replies Last reply
    0
    • M madhan_mss

      Hi, In our window based C#.net application, we are getting this "Window Handle Error" in a random manner. Initially we thought it could be a memory issue but sometimes even if there is enough memory, the same error comes. we are unable to track the root of this error. Any input regarding this error is most welcome. Thanks, Madhan

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      When the error occurs - what does the stack trace look like? What happens immediately prior to the error?


      Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

      1 Reply Last reply
      0
      • M madhan_mss

        Hi, In our window based C#.net application, we are getting this "Window Handle Error" in a random manner. Initially we thought it could be a memory issue but sometimes even if there is enough memory, the same error comes. we are unable to track the root of this error. Any input regarding this error is most welcome. Thanks, Madhan

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

        You may want to open Task Manager, go to the View menu and Select Columns. Turn on the Handles column. Then run your application and start using it. If you application continues to accumulate handles and starts to climb over, say, 1,500 handles, you've got a handle leak problem. Your code isn't releasing unmanaged resources, like GDI handles, file handles, window handles, ... This means you're not calling .Dispose() on objects, like Graphics, Brush, Font, Pen, forms shown with ShowDialog(), ...

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        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