Release unmanaged code memory by managed code
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi I write a program which P/Invoke a unmanaged function calling "CreateWindow(..)" to create a window and the window handle is a global variable at the unmanaged side. When the managed program stop, how to destory the window to free the memory? Or the window will dispose after the caller program stop? Thanks
-
Hi I write a program which P/Invoke a unmanaged function calling "CreateWindow(..)" to create a window and the window handle is a global variable at the unmanaged side. When the managed program stop, how to destory the window to free the memory? Or the window will dispose after the caller program stop? Thanks
P/Invoke DestroyWindow to free the handle.