News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Not Using FindClose

Started by Mr Earl, March 31, 2005, 02:57:11 PM

Previous topic - Next topic

Mr Earl

I recently discovered FindClose and realized that I had been using FindFirstFile w/o ever closing the handle.  Since the program ran OK before I used FindClose, I have a question:  What problems could that omission have caused.  Also, what problems could you expect if you forget to close any other handle?  Just curious, I don't intend to stop closing my handles.

hutch--

 :bg

Depending on your sense of humour, the next Dork at Microsoft who has to revisit the code may change the way it works if you are not using the exact documented technique. If you were running it for a long time you could run out of handles eventually.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

P1

When your process closed the OS did the did clean up from newbie programming techniques.   :naughty:

Regards,  P1  :8)

Mark Jones

Hmm.... Microsoft was actually "thinking outside the box" there. Or should I say, "thinking outside the segment."  :lol
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08