SerpentAI / D3DShot

Extremely fast and robust screen capture on Windows with the Desktop Duplication API
MIT License
328 stars 74 forks source link

No way to delete D3DShot instance. #38

Open GeorgiiKapralov opened 3 years ago

GeorgiiKapralov commented 3 years ago

Can we add possibility to force delete instance? Like in : https://stackoverflow.com/questions/43619748/destroying-a-singleton-object-in-python . I've tested it locally and it's work for me.

I need to delete / re-create instance to recover D3DShot from some situation. For ex. D3DShot will stuck in case of D3DCtx changed. Issuse: https://github.com/SerpentAI/D3DShot/issues/30

zeyad-mansour commented 3 years ago

if d is the name of your object, simply do: d.stop()