Creating a Strong Reference to an ArkTS Object Using Node-API Extension APIs OpenHarmony provides the napi_strong_ref APIs to create strong references, which is more efficient than the napi_ref APIs.
阅读全文
openharmony 鸿蒙 use-jsvm-about-v8-trace
Using HiSmartPerf to Collect JSVM Trace Overview JSVM trace is a tool provided by the JSVM engine for analyzing and debugging the execution process of JavaScript code. It records and outputs detailed
阅读全文
openharmony 鸿蒙 napi_status_introduction
Node-API Status Codes Overview Specifically, most Node-APIs return a status code enumeration of the napi_status type, indicating whether the operation is successful. This topic describes the non-napi_
阅读全文
openharmony 鸿蒙 napi-faq-about-stability
FAQs About Stability How do I troubleshoot the issue that an application often crashes during running Question: During Node-API development, an application often crashes, and the cpp crash stack is di
阅读全文
openharmony 鸿蒙 napi-faq-about-memory-leak
FAQs About Memory Leaks Is there any mechanism to check whether napi_ref leaks Question: When napi_create_reference is used to create a reference to a JS object, napi_delete_reference needs to be used
阅读全文
openharmony 鸿蒙 use-napi-about-context
Creating, Switching, and Destroying a Context in a Thread Using Node-API Extension APIs When an application is started, the main thread of the application is an ArkTS thread, which has a context manag
阅读全文
openharmony 鸿蒙 jsvm-locate-memory-leak
Troubleshooting JSVM-API Memory Leaks JSVM memory usage includes native memory usage (C/C++ memory usage) and heap memory usage of the underlying JavaScript engine. Heap memory is used for maintaining
阅读全文
openharmony 鸿蒙 napi-faq-about-common-basic
FAQs About Basic Functionalities What should I do if the module fails to be loaded and the error message "Error message: is not callable" is displayed? Question: When the libxxx.so file provided by th
阅读全文
openharmony 鸿蒙 jsvm-secure-shield-mode
JSVM-API Secure Shield Mode The Secure Shield mode is a system-level security protection solution designed for users with high security requirements. This mode strictly restricts functionalities to si
阅读全文
openharmony 鸿蒙 native-print-file
Printing Files (C/C++) OpenHarmony provides two printing methods: Method 1: An application calls an API to start the system print preview page and sends a print job for the rendered PDF file to a prin
阅读全文