GAMEDEV.NET
Are COM pointers released in the reverse order of their declaration?
For example, I have 4 COM pointers, named ptr0 to ptr3, and initialize them in the constructor as follows:Class::Class(){// Real codeptr3 = ...ptr2 = ...ptr0 = ...ptr1 = ...}Are they automatically released in the destructor in the reverse order of their declaration, like this? Like how a class would be destructed in the reverse order of its construction.Class::~Class(){// Not real co
0 Comments 0 Shares 12 Views