Skip to content
Discussion options

You must be logged in to vote

It's unsafe because the GC doesn't track the pointer. If you take a pointer to a method in a different assembly and that assembly is later unloaded, nothing invalidates that pointer. It's now just a dangling pointer to undefined and what happens when you call it could be anything from the code working to formatting your hard drive.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@redradist
Comment options

@333fred
Comment options

@redradist
Comment options

@333fred
Comment options

@huoyaoyuan
Comment options

Answer selected by 333fred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants