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. Database & SysAdmin
  3. System Admin
  4. Win2000 and Win16 app --> lack of GDI resources

Win2000 and Win16 app --> lack of GDI resources

Scheduled Pinned Locked Moved System Admin
graphicsdelphitoolshelpquestion
3 Posts 2 Posters 2 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.
  • B Offline
    B Offline
    Bartosz Lizak
    wrote on last edited by
    #1

    Hello all, I need to perform some operation on some old 16 bit application (compiled under borland). Operation requires some text drawing (custom text control) and there is a problem. I use script which calls about 5000 such operations. After circa 500th there is a GDI problem. The result is that I receive dialog box "GDI cannot execute operation" and content of every window is not painted correctly (looks like global GDI failure). I tried to peridically closing this app, but I didn't notice any improve. I wonder is there any solution of this? Maybe I should try to change OS to Win9x, which has different old Win app emulation? Or maybe there is some app, which 'cleans' unused GDI resources? Any anser will be appreciate. I use Win2000, 128MB RAM, 32MB Video. Regards Bartek

    A 1 Reply Last reply
    0
    • B Bartosz Lizak

      Hello all, I need to perform some operation on some old 16 bit application (compiled under borland). Operation requires some text drawing (custom text control) and there is a problem. I use script which calls about 5000 such operations. After circa 500th there is a GDI problem. The result is that I receive dialog box "GDI cannot execute operation" and content of every window is not painted correctly (looks like global GDI failure). I tried to peridically closing this app, but I didn't notice any improve. I wonder is there any solution of this? Maybe I should try to change OS to Win9x, which has different old Win app emulation? Or maybe there is some app, which 'cleans' unused GDI resources? Any anser will be appreciate. I use Win2000, 128MB RAM, 32MB Video. Regards Bartek

      A Offline
      A Offline
      Anders Molin
      wrote on last edited by
      #2

      If don't know if this is possible to do from a script. But, if you could kill the "NTVDM" process (Windows NT Virtual DOS Machine) process, the GDI resources used by 16-bit programs should be free'ed... - Anders Money talks, but all mine ever says is "Goodbye!"

      B 1 Reply Last reply
      0
      • A Anders Molin

        If don't know if this is possible to do from a script. But, if you could kill the "NTVDM" process (Windows NT Virtual DOS Machine) process, the GDI resources used by 16-bit programs should be free'ed... - Anders Money talks, but all mine ever says is "Goodbye!"

        B Offline
        B Offline
        Bartosz Lizak
        wrote on last edited by
        #3

        Yes, thank you - I found this method useful yesterday. Instead of killing NTVDM process - I kill wowexec (all resources are freed, too). I wonder which method is more correct? Regards Bartek

        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