刚好从一个前辈的blog上看到一篇微软提供的文章,讲述了多线程编程中应该注意的问题!顺便就记载下来以免未来遇到这类问题不知所措!
最基本的忠告就是:
In a multi-threaded application written using MFC, you should not pass MFC objects across thread boundaries. As a general rule, a thread should access only those MFC objects that it creates.
呵呵
资料在这里:http://support.microsoft.com/default.aspx?scid=kb;en-us;147578