Angel Hernández

Accessing a managed object from unmanaged memory (Native)

I'm currently writing an article that's related to WPF, Win32 and Hooks which use callbacks  to notify about the changes performed on a given object, well I received a couple of exceptions due to garbage collection and the callbacks my application had that moment. The solution was to implement the GCHandle structure and problem sorted. Below you can see the implementation

Regards,

Angel

Leave a Comment

(required) 

(required) 

(optional)

(required)