Why RegisterClass fails with ERROR_NOT_ENOUGH_MEMORY?
问题 Shortly, my question is, why can WinAPI RegisterClass fail with ERROR_NOT_ENOUGH_MEMORY , when there is a lot of memory free, and what can I do to prevent it? Background: I'm developing an application (WinSCP FTP/SFTP client) that many people use for automating file transfers. Some are running it every minute, every day, from a Windows Scheduler. I'm getting a lot of reports that after a certain number of runs the application stops working. The number of runs to trigger the problem does not