Skip to content

Could not create DC #9

Description

@mndon

Run the script for a long time, run for more than 12 hours, it will report this error.

File "F:\myself\apprunner_client\apprunner_client\venv\lib\site-packages\desktopmagic\screengrab_win32.py", line 365, in getScreenAsImage
return _getRectAsImage(None)
File "F:\myself\apprunner_client\apprunner_client\venv\lib\site-packages\desktopmagic\screengrab_win32.py", line 328, in _getRectAsImage
dc, bitmap = getDCAndBitMap(rect=rect)
File "F:\myself\apprunner_client\apprunner_client\venv\lib\site-packages\desktopmagic\screengrab_win32.py", line 223, in getDCAndBitMap
mfcDC = win32ui.CreateDCFromHandle(hwndDevice)
win32ui.error: Could not create DC.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions