Release

王朝百科·作者佚名  2010-02-11  
宽屏版  字体: |||超大  

1.Release英文解释音标 Phonetic symbol 

[ri'li:s] 

词性及解释 Part of speech and defination 

n. 释放, 发泄, 豁免, 发行, 释放证书

vt. 释放, 解除, 放松, 豁免, 免除, 发布, 放弃, 让与

n. 发布

【计】 版本, 发布

【经】 释放, 公布

2.DirectX中的release函数:英文解释:

IUnknown::Release Decreases the reference count of the interface by 1.

ULONG Release();

Parameters:

None

Return Values:

Returns the new reference count. This value is for diagnostic and testing purposes only.

Remarks:The object that exports the interface deallocates itself when its total reference count reaches 0. Use the IUnknown::AddRef method to increase the interface's reference count by 1.

Applications must call this method to release only those interfaces that were explicitly created in a previous call to IUnknown::AddRef,IUnknown::QueryInterface, or a creation function, such as Direct3DCreate9.

Requirements:

Header: Declared in Unknwn.h. 

中文解释:

接口的引用数量递减1

返回新的引用数。 此数值紧用于诊断和测试。

当继承接口而来的对象的总引用数量达到0时,他会释放自己。使用IUnknown::AddRef 函数可以按1递增接口的引用数目。

应用程序必须调用此方法释放这些接口,这些接口包括之前调用 IUnknown::AddRef  IUnknown::QueryInterface产生的,也包括通过一个产生函数比如Direct3DCreate9,产生的。

 注:引自DirectX sdk文档(翻译不太准确,参考)。

 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝百科 版权所有