© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
D. VostokovPython Debugging for AI, Machine Learning, and Cloud Computinghttps://doi.org/10.1007/978-1-4842-9745-2_11

11. Case Study: Resource Leaks

Dmitry Vostokov1  
(1)
Dalkey, Dublin, Ireland
 

In the previous chapter, you looked at debugging usage patterns. In this chapter, you will use the pattern approach to diagnose and debug a common problem type in the Windows operating system: resource leaks.

Elementary Diagnostics

If you run the handle-leak.py script, you will notice the constant monotone increase of the handles’ Counter Value (Figure 11-1).

A screenshot ...

Get Python Debugging for AI, Machine Learning, and Cloud Computing: A Pattern-Oriented Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.