pb halt以后,不会调用application的close事件的问题

Posted 春夏秋冬春...

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pb halt以后,不会调用application的close事件的问题相关的知识,希望对你有一定的参考价值。

发现pb程序halt以后没有调用,application的close事件,于是百度了一下发现

如果只使用halt,系统直接中止应用,可能会出现对象未正常释放的情况
而halt close会正常关闭主线程,这样的话application的close事件也会正常执行,所以halt应该尽量不用,推荐使用halt close
When PowerBuilder encounters Halt without the keyword CLOSE, it immediately terminates the application. 
When PowerBuilder encounters Halt with the keyword CLOSE, it immediately executes the script for the Close event for the application and then terminates the application. If there is no script for the Close event at the application level, PowerBuilder immediately terminates the application

 




以上是关于pb halt以后,不会调用application的close事件的问题的主要内容,如果未能解决你的问题,请参考以下文章

shutdown, halt, poweroff, reboot关机和重启相关命令

进入HALT模式无法自动唤醒

halt命令

如何用PowerBuilder打开pbl和pbd文件

halt命令总结

halt命令总结