突然想起的有关上下文服务的问题
上下文服务变量用过后需不需要Destroy掉 问题点数:10、回复次数:3Top
1 楼zhanwei(@_@,初学.Net)回复于 2002-05-09 17:58:03 得分 10
有create 就要DestroyTop
2 楼fibbery(飞)(睡足了才能提高效率)回复于 2002-05-09 18:06:59 得分 0
你的想法很有道理啊!帮助上这样写:
Call this function to establish a reference to a service object,
allowing you to access methods and properties in the service
object. You must call this function before calling service object
functions.
Using a CREATE statement You can instantiate these objects with a
PowerScript CREATE statement. But this always creates an object for
the default context (native PowerBuilder execution environment),
regardless of where the application is running.
就是说,获取服务的变量可以用CREATE,实际上调用Getcontextservice()函数时系统也是创建了一个实例,所以仍然要Destroy掉!
是这样吧!Top
3 楼fibbery(飞)(睡足了才能提高效率)回复于 2002-05-09 18:15:30 得分 0
是否有人另有高见,或者能说得更深刻一些!Top




