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 / C++ / MFC
  4. Why disables my program Drag&Drop after running some time ?

Why disables my program Drag&Drop after running some time ?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 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.
  • P Offline
    P Offline
    pma
    wrote on last edited by
    #1

    It seems like that one of my programs disables Drag&Drop after running some time on a Win2000 machine, i've seen it also on one Win98 machine, but its running without this problem on 100's of other installations ? This happens if a user is working for some time with the program, he's doing nothing special, but than "double click" and Drag&Drop on the desktop isnt working anymore. If you stop the program in this situation you can not restart this programm, but you get the following windwos message "Windows Explorer - Unable to run this command" Only a windows-restart solves the problem

    A 1 Reply Last reply
    0
    • P pma

      It seems like that one of my programs disables Drag&Drop after running some time on a Win2000 machine, i've seen it also on one Win98 machine, but its running without this problem on 100's of other installations ? This happens if a user is working for some time with the program, he's doing nothing special, but than "double click" and Drag&Drop on the desktop isnt working anymore. If you stop the program in this situation you can not restart this programm, but you get the following windwos message "Windows Explorer - Unable to run this command" Only a windows-restart solves the problem

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      At the moment problem occurs 1. Start Task Manager 2. View->SelectColumns. Select "USER Objects", "Handle Count", "Thread count", "GDI Object" 3. Note the numbers for each of the columns above Repeat the test, see if you reach a "limit" on any of them. Limits are not documented in MSDN, but I know for sure "USER Objects" can not be more than 10000. I suspect that other columns have some kind of limit per process as well. Watch memory usage as well.

      P 1 Reply Last reply
      0
      • A AlexO

        At the moment problem occurs 1. Start Task Manager 2. View->SelectColumns. Select "USER Objects", "Handle Count", "Thread count", "GDI Object" 3. Note the numbers for each of the columns above Repeat the test, see if you reach a "limit" on any of them. Limits are not documented in MSDN, but I know for sure "USER Objects" can not be more than 10000. I suspect that other columns have some kind of limit per process as well. Watch memory usage as well.

        P Offline
        P Offline
        pma
        wrote on last edited by
        #3

        thanks, i've already done that, all this values remain more or less the same. 150 handles, 150 user objects, 6 threads, 300 gdi. memory is growing a little bit, but not as much that this could be the problem. the other problem is that i cannot reproduce this problem on one of my machines, but some of my costumers can do that. ok i can ask them to send me there resources if this problem occurs. any other ideas, dll's, i've static linked the mfc libs.

        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