Skip to content

Question about mono_array_new #112855

Answered by huoyaoyuan
ffbh123456 asked this question in Q&A
Feb 24, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

The mono project document is somehow aged. mono_gc_register_root registers a region of memory to mono, indicates the content within it should be conservatively treated as gc roots. Once you put an object pointer into it, the object will be preserved.

mono_gchandle_new_v2 is new fashioned and should be used.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ffbh123456
Comment options

@huoyaoyuan
Comment options

Answer selected by ffbh123456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants