工具/软件:
您好!
感谢您的明确回答。
我有兴趣了解 R5F 内核中的析构函数属性。
当程序从 main() 函数退出时、析构函数属性不执行。
但是、在输入 main() 函数时、构造函数属性起作用。
请提供使用析构函数属性的正确方法。
BR
Jaxon
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:
您好!
感谢您的明确回答。
我有兴趣了解 R5F 内核中的析构函数属性。
当程序从 main() 函数退出时、析构函数属性不执行。
但是、在输入 main() 函数时、构造函数属性起作用。
请提供使用析构函数属性的正确方法。
BR
Jaxon
感谢您将此问题通知我们。 我能够重现同样的行为。 我提交了条目 EXT_EP-12714 以对此进行调查。
提供使用析构函数属性的正确方法。
作为权变措施、请使用标准 RTS 函数 atexit 、在中声明 。 例如:
atexit(function_name_here);
谢谢。此致、
-乔治