AriaAugs / CC

0 stars 0 forks source link

Screen Stream Dying #14

Open AriaAugs opened 3 years ago

AriaAugs commented 3 years ago

The video stream of the victim computer's screen dies after a short while of the video streaming. The display width and height listed by the C code changes from normal values to be -858993460. This indicates that the problem occurs within the screenshot code rather than as a result of failing network communication.

AriaAugs commented 3 years ago

This issue seems to be fixed. Some more testing is needed before closing this issue. The bug was occurring because of a memory leak or similar problem in the code. The HBITMAP objects used for capturing the screen weren't being deleted, so after ~3000 frames, the new HBITMAP objects would point to/access bad memory.

AriaAugs commented 3 years ago

The video stream no longer goes blank, but freezes. This has occurred at ~5000 frames twice and around ~10,000 frames once. However, both the C client and Python server seem to otherwise function properly even when the video stream freezes.