Clause 11: create resources and Query Interfaces in a type-safe manner more terms go to source: http://blog.csdn.net/liuchang5
The following method is not uncommon in the compilation of COM components:
Void func () {IX * pix = NULL; hrretcode = cocreateinstance (clsid_mycomponent, null, clsctx_inproc_server, iid_ix (void **) pix // amount ~~ Ship in the gutter
As in the title, if I were to answer before, I would say, yes, in the multi-threaded environment to operate the vector, do not need to add synchronized.But I accidentally saw an article today, I found that my previous idea was wrong, the address of this article:http://zhangbq168.blog.163.com/blog/static/2373530520082332459511/I extract the key part:Vectors are slower than ArrayList because the vectors themselves are synchronized, and ArrayList
interface. . NET follows this trend.
Also Note this. NET isn ' t suitable for desktop applications if to care about protecting your intellectual property becaus E can ' t protect it in managed MSIL code on the desktop. This is a shocker to me. Although MSIL ' s premise are good and the. NET Framework and Common Language Runtime (CLR) are stable, they ' re just not feas Ible or workable in a standalone desktop application to security standpoint. As a
Write in frontAccording to the tonymacx86 on the matching black Apple, at home also have family use, mainly is up and down QQ, see video, listen to music. A few days ago with chrome found that each page opened or refreshed after the click will open or an ad page, at first thought it was the operator, but did not hit the embedded code. Tangled n Long.Process loggingls/library/application\ support/A suspicious directory was found in the directory 23b523
Name node is in safe mode.
Close SafeMode
Hadoop Dfsadmin-safemode Leave
Exception in thread "main" org.apache.hadoop.ipc.RemoteException: Org.apache.hadoop.hdfs.server.namenode.SafeModeException:Cannot Create File/wangxin_test/build.xml. Name node is in safe mode.The ratio of reported blocks 1.0000 has reached the t
I have been competing with information security. I once issued a question about the 163.com password. Years ago, I discovered that QQ had maliciously acquired passwords from countless fraudulent emails, later I found that the official QQ account was helping users leak their passwords, so I wrote them on the QQ signature.
Later, the csdn incident emerged, and I said on Weibo that many websites will have this problem. As a result, the password issue
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.